Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
416
Widok
0
21/05/2023 7:31 pm
Topic starter
example
1 Answer
0
21/05/2023 7:33 pm
Topic starter
open routes/web.php, and paste something simmilar.
//VUE ROUTER Route::get('/{any}', function () { if (Auth::user()) { return view('user-welcome'); } else { return view('guest-welcome'); } })->where('any', '(.*)');
no any link will always redirect to your user-welcome or guest-welcome view and load vue components, always
then add in same file prefix for API calls
Route::prefix('api')->group(function () { Route::resource('forms', FormsController::class); Route::resource('somethings', SomethingsController::class); });
This post was modified 2 lata temu 2 times by mrmucha