'datetime', 'password' => 'hashed', 'is_active' => 'boolean', 'role' => \App\Enums\UserRole::class, ]; } public function isSuperAdmin(): bool { return $this->role === \App\Enums\UserRole::SuperAdmin; } public function isTrackingOperator(): bool { return $this->role === \App\Enums\UserRole::TrackingOperator; } public function isDataEntry(): bool { return $this->role === \App\Enums\UserRole::DataEntry; } public function isCustomer(): bool { return $this->role === \App\Enums\UserRole::Customer; } //کیف پول public function wallet() { return $this->hasOne(Wallet::class); } }