*/ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for serialization. * * These are the attributes that will be hidden when the model is converted to an array or JSON. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * Get the attributes that should be cast. * * This method defines how the attributes should be cast when accessed. * In this case, 'email_verified_at' is cast to 'datetime', 'password' is cast to 'hashed', and 'id' is cast to 'string'. * * @return array */ protected function casts() : array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'id' => 'string', ]; } }