jeremykenedy /
laravel-roles
| 1 | <?php |
||
| 2 | |||
| 3 | namespace jeremykenedy\LaravelRoles\Test; |
||
| 4 | |||
| 5 | use Illuminate\Auth\Authenticatable; |
||
| 6 | use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; |
||
| 7 | use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; |
||
| 8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
| 9 | use Illuminate\Database\Eloquent\Model; |
||
| 10 | use Illuminate\Foundation\Auth\Access\Authorizable; |
||
| 11 | use jeremykenedy\LaravelRoles\Traits\HasRoleAndPermission; |
||
| 12 | |||
| 13 | class User extends Model implements AuthorizableContract, AuthenticatableContract |
||
| 14 | { |
||
| 15 | use Authorizable; |
||
| 16 | use Authenticatable; |
||
| 17 | use HasFactory; |
||
| 18 | use HasRoleAndPermission; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | protected $guarded = []; |
||
| 21 | |||
| 22 | protected $table = 'users'; |
||
| 23 | |||
| 24 | protected static function newFactory() |
||
| 25 | { |
||
| 26 | return UserFactory::new(); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |