Created
April 28, 2019 06:55
-
-
Save earth774/755221163304e32748fc865ecf02244f to your computer and use it in GitHub Desktop.
Model Users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Database\Eloquent\Model; | |
use Laravel\Lumen\Auth\Authorizable; | |
class Users extends Model implements AuthenticatableContract, AuthorizableContract | |
{ | |
use Authenticatable, Authorizable; | |
/** | |
* The attributes that are mass assignable. | |
* | |
* @var array | |
*/ | |
protected $fillable = [ | |
'fullname', 'lastname', 'age', 'tel', | |
]; | |
/** | |
* The attributes excluded from the model's JSON form. | |
* | |
* @var array | |
*/ | |
protected $hidden = [ | |
'created_at', 'updated_at', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment