hasMany(Paste::class); } /** * Check if the user is an administrator. */ public function isAdmin(): bool { return $this->is_admin; } protected function casts(): array { return [ 'password' => 'hashed', 'is_admin' => 'boolean' ]; } }