|
@@ -5,13 +5,16 @@ namespace App;
|
|
use Illuminate\Auth\Authenticatable;
|
|
use Illuminate\Auth\Authenticatable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
|
-use Illuminate\Foundation\Auth\Access\HasAbilities;
|
|
|
|
|
|
+use Illuminate\Foundation\Auth\Access\Authorizable;
|
|
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
|
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
|
|
|
+use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
|
|
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
|
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
|
|
|
|
|
-class User extends Model implements AuthenticatableContract, CanResetPasswordContract
|
|
|
|
|
|
+class User extends Model implements AuthenticatableContract,
|
|
|
|
+ AuthorizableContract,
|
|
|
|
+ CanResetPasswordContract
|
|
{
|
|
{
|
|
- use Authenticatable, CanResetPassword, HasAbilities;
|
|
|
|
|
|
+ use Authenticatable, Authorizable, CanResetPassword;
|
|
|
|
|
|
/**
|
|
/**
|
|
* The database table used by the model.
|
|
* The database table used by the model.
|