HomeController
public function __construct()
{
$this->middleware(['auth:embajador','auth:experto']);
}
public function index()
{
return view('home');
}
My problem is that it is cyclizing the information because it seems that it does not recognize the authentication. It cycles between the path / login and / ambassador.And this started happening when you add the line:
Route::get('{path}','HomeController@index')->where('path','([A-z\d-\/_,]*)?');
But I need it because vue
if I refresh it sends me to 404
routes:
Route::auth();
Route::get('/', ['as' => 'home', 'uses' => 'HomeController@index']);
Route::get('{path}','HomeController@index')->where('path','([A-z\d-\/_,]*)?');
If I remove the line
Route::get('{path}','HomeController@index')->where('path','([A-z\d-\/_,]*)?');
It works correctly for me, but I can not use it with vue
does anyone know how I can control access or why are requests being cycled?