Route::group(['prefix' => 'painel', 'namespace' => 'Backend'], function(){
// Login Routes
Route::get('/', 'LoginController@getLogin');
]);
That way when 'localhost / panel' access does not open, 404 appears. If I put it like this:
Route::group(['prefix' => 'painel', 'namespace' => 'Backend'], function(){
// Login Routes
Route::get('/teste', 'LoginController@getLogin');
]);
and access 'localhost / panel / test' works. I want this route to work when only accessing 'localhost / panel'. Does anyone know what I'm doing wrong?
Thank you!