Expand code to support laravel passport

This commit is contained in:
James Cole
2018-02-04 08:14:03 +01:00
parent ca8b4cb11a
commit f1d77bdb50
5 changed files with 12 additions and 9 deletions

View File

@@ -30,6 +30,7 @@ use Illuminate\Database\Eloquent\Relations\HasManyThrough;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;
use Log;
use Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -39,7 +40,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
*/
class User extends Authenticatable
{
use Notifiable;
use Notifiable, HasApiTokens;
/**
* The attributes that are mass assignable.