'boolean', 'email_verified_at' => 'datetime', ]; /** * Map attribute names to enum classes. * * @var array */ protected $enumCasts = [ 'role' => UserRole::class ]; // * RELATIONSHIPS /** * Has Many Participation relation * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function participations() { return $this->hasMany(Participation::class, 'customer_id'); } // * METHODS /** * Check if user is admin. * ! Not local CRM ! * * @return boolean */ public function isAdmin(): bool { return false; } /** * Check if user is local. * ! Not local CRM ! * * @return boolean */ public function isLocal(): bool { return false; } }