Fixed paths to Aurhorizable/Authenticatable contracts

This commit is contained in:
snipe 2018-07-24 21:29:08 -07:00
parent d81975e168
commit b2968ea6c6

View file

@ -3,11 +3,11 @@ namespace App\Models;
use App\Models\Traits\Searchable; use App\Models\Traits\Searchable;
use App\Presenters\Presentable; use App\Presenters\Presentable;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Watson\Validating\ValidatingTrait; use Watson\Validating\ValidatingTrait;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
@ -17,7 +17,9 @@ use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens; use Laravel\Passport\HasApiTokens;
use DB; use DB;
class User extends SnipeModel implements AuthenticatableContract, CanResetPasswordContract
class User extends SnipeModel implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract
{ {
protected $presenter = 'App\Presenters\UserPresenter'; protected $presenter = 'App\Presenters\UserPresenter';
use SoftDeletes, ValidatingTrait; use SoftDeletes, ValidatingTrait;