Projektgrundlage: Laravel 13 mit Livewire-Starter-Kit und Sail

- Livewire-Starter-Kit (Livewire 4, Flux, Fortify) mit Pest
- Sail mit PHP 8.5, MySQL 8.4, Redis, Meilisearch 1.54.2, Mailpit
- Registrierung deaktiviert, 2FA und Passkeys verfügbar
- Spatie laravel-permission
- gitleaks als Pre-Commit-Hook (.githooks)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Christoph
2026-10-01 08:53:42 +02:00
co-authored by Claude Opus 5.5
commit dedce594a0
131 changed files with 22922 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Spatie\Permission\Models\Role;
use Tests\TestCase;
class RolesTest extends TestCase
{
use RefreshDatabase;
public function test_users_can_be_assigned_roles(): void
{
Role::create(['name' => 'Administrator']);
$user = User::factory()->create();
$user->assignRole('Administrator');
$this->assertTrue($user->hasRole('Administrator'));
}
}