*/ use HasFactory, Notifiable; public function organizations(): HasMany { return $this->hasMany(Organization::class); } public function currentOrganization(): BelongsTo { return $this->belongsTo(Organization::class, 'current_organization_id'); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'has_organization' => 'boolean', 'password' => 'hashed', 'current_organization_id' => 'integer', ]; } }