diff --git a/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/app/Http/Controllers/Auth/AuthenticatedSessionController.php index dbb93653..4e17a2de 100644 --- a/app/Http/Controllers/Auth/AuthenticatedSessionController.php +++ b/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -46,6 +46,8 @@ public function destroy(Request $request): RedirectResponse $request->session()->invalidate(); $request->session()->regenerateToken(); + Inertia::clearHistory(); + return redirect('/'); } } diff --git a/config/inertia.php b/config/inertia.php new file mode 100644 index 00000000..48c597d0 --- /dev/null +++ b/config/inertia.php @@ -0,0 +1,73 @@ + [ + + 'enabled' => true, + + 'url' => 'http://127.0.0.1:13714', + + // 'bundle' => base_path('bootstrap/ssr/ssr.mjs'), + + ], + + /* + |-------------------------------------------------------------------------- + | Testing + |-------------------------------------------------------------------------- + | + | The values described here are used to locate Inertia components on the + | filesystem. For instance, when using `assertInertia`, the assertion + | attempts to locate the component as a file relative to any of the + | paths AND with any of the extensions specified here. + | + */ + + 'testing' => [ + + 'ensure_pages_exist' => true, + + 'page_paths' => [ + + resource_path('js/pages'), + + ], + + 'page_extensions' => [ + + 'js', + 'jsx', + 'svelte', + 'ts', + 'tsx', + 'vue', + + ], + + ], + + 'history' => [ + + 'encrypt' => true, + + ], + +];