Add groups page. Update landing Add toastmagic

This commit is contained in:
joeplikestocode
2026-02-28 21:46:08 +01:00
parent 09b2b988f7
commit e405fec5c2
24 changed files with 2000 additions and 17 deletions

View File

@@ -4,6 +4,8 @@ namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
@@ -45,4 +47,18 @@ class User extends Authenticatable
'password' => 'hashed',
];
}
public function crews(): BelongsToMany
{
return $this->belongsToMany(
Crew::class,
'crew_members',
'user_id',
'crew_id'
)->withTimestamps();
}
public function settings(): HasMany
{
return $this->hasMany(Setting::class);
}
}