Skip to content

Instantly share code, notes, and snippets.

@Mozartted
Created August 31, 2017 12:22
Show Gist options
  • Save Mozartted/217efedfb5a50c83721409be26596b1f to your computer and use it in GitHub Desktop.
Save Mozartted/217efedfb5a50c83721409be26596b1f to your computer and use it in GitHub Desktop.
User Model
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Passport\HasApiTokens;
class User extends Authenticatable
{
use Notifiable, HasApiTokens;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment