*/ use HasFactory; /** * The attributes that should be hidden for serialization. * * @var list */ protected $hidden = [ 'password', ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'id' => 'int', 'name' => 'string', 'email' => 'string', 'email_verified_at' => 'datetime', 'password' => 'hashed', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; } }