Complete TP7 TP8 authentication authorization and classic CSS

This commit is contained in:
2026-10-21 00:48:38 +02:00
parent 4a84a17cbf
commit ffe85d5f0d
101 changed files with 7643 additions and 110 deletions
@@ -29,6 +29,7 @@ class UserFactory extends Factory
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'is_admin' => false,
'remember_token' => Str::random(10),
];
}
@@ -42,4 +43,14 @@ class UserFactory extends Factory
'email_verified_at' => null,
]);
}
/**
* Indicate that the user is an administrator.
*/
public function admin(): static
{
return $this->state(fn (array $attributes): array => [
'is_admin' => true,
]);
}
}