diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php new file mode 100644 index 0000000..6919471 --- /dev/null +++ b/resources/views/settings/index.blade.php @@ -0,0 +1,17 @@ + + +

+ {{ __('Settings') }} +

+
+ +
+
+
+
+ {{ __('Settings') }} +
+
+
+
+
diff --git a/routes/web.php b/routes/web.php index 22e2295..efae536 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,7 @@ Route::middleware('auth')->group(function () { Route::get('/roles', [RoleController::class, 'index'])->name('roles.index'); Route::get('/roles/create', [RoleController::class, 'create'])->name('roles.create'); Route::post('/roles', [RoleController::class, 'store'])->name('roles.store'); + Route::view('/settings', 'settings.index')->name('settings.index'); Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); diff --git a/tests/TestCase.php b/tests/TestCase.php index fe1ffc2..8e00de4 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,9 +2,16 @@ namespace Tests; +use Illuminate\Foundation\Http\Middleware\PreventRequestForgery; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { - // + protected function setUp(): void + { + parent::setUp(); + + $this->withoutVite(); + $this->withoutMiddleware(PreventRequestForgery::class); + } }