feat: some fixes to the ui, imlemented user and guest user, ans used the dahboard

This commit is contained in:
2026-08-16 16:24:25 +02:00
parent 4639baa9ae
commit 50e9fbd0b0
37 changed files with 1657 additions and 194 deletions
+9 -1
View File
@@ -5,6 +5,13 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int|null $user_id
* @property string $name
* @property array<int, array{key: string, label: string}> $cards
* @property bool $is_system
*/
class Deck extends Model
{
protected $fillable = [
@@ -12,7 +19,7 @@ class Deck extends Model
'cards',
];
protected function casts()
protected function casts(): array
{
return [
'cards' => 'array',
@@ -20,6 +27,7 @@ class Deck extends Model
];
}
/** @return BelongsTo<User, $this> */
public function user(): BelongsTo
{
return $this->belongsTo(User::class);