Routes do not work as they should

Posted 1 year ago by ramonpego

My site is online, you can access it, and type anything after your url and will see that the site does not give 404 error or any other, but if you access the routes that exist will ask for login.

My site is online: http://18.221.49.184/ you can access it, and type anything after your url (like http://18.221.49.184/kaskadaksdak) and will see that the site does not give 404 error or any other, but if you access the routes that exist will ask for login.

Route::get('/', function () { return view('welcome'); });



Auth::routes();


Route::group(['middleware' => 'auth'], function() {
Route::view('/','welcome');

//Página Inicial do sistema
    Route::get('/home', '[email protected]')->name('home');

//Aluno
    Route::get('/aluno/listar', '[email protected]');
    Route::resource('/aluno', 'AlunoController');

//Instrutor
    Route::get('/instrutor/listar', '[email protected]');
    Route::resource('/instrutor', 'InstrutorController');

//Modalidade
    Route::get('/modalidade/listar', '[email protected]');
    Route::resource('/modalidade', 'ModalidadeController');

//Ficha
    Route::get('/fic    ha/listar', '[email protected]');
    Route::resource('/ficha', 'FichaController');

//Aula
    Route::get('/aula/listar', '[email protected]');
    Route::resource('/aula', 'AulaController');

//Matricla
    Route::get('/matricula/listar', '[email protected]');
    Route::resource('/matricula', 'MatriculaController');

});

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.