I am using react routers within Laravel 8 . The all autentification is working fine using Fortify.
React routers are working fine but till I used
Route::get('/{path?}', 'IndexController@index')->name('index')
->where('path', '.*');
the authentification is not rendered any more .
Is there a way to create an exception within
Route::get('/{path?}', 'IndexController@index')->name('index')
->where('path', '.*'); ?