Skip to content

Instantly share code, notes, and snippets.

@earth774
Created April 28, 2019 06:55
Show Gist options
  • Save earth774/755221163304e32748fc865ecf02244f to your computer and use it in GitHub Desktop.
Save earth774/755221163304e32748fc865ecf02244f to your computer and use it in GitHub Desktop.
Model Users
<?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