Skip to content

Instantly share code, notes, and snippets.

@agungprsty
Created May 29, 2022 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agungprsty/b34fcd1f506517113d5fa1177b17cb0f to your computer and use it in GitHub Desktop.
Save agungprsty/b34fcd1f506517113d5fa1177b17cb0f to your computer and use it in GitHub Desktop.
use App\Traits\Uuids;
class User extends Model
{
use Uuids;
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'name', 'email',
];
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = ['uuid'];
/**
* The attributes excluded from the model's JSON form.
*
* @var string[]
*/
protected $hidden = [
'password',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment