I try writting the url http://127.0.0.1:8000/home and I'm not logged in and it shows me home page but obviously not loaded correctly, What I want is when I write http://127.0.0.1:8000/home to redirect me to http://127.0.0.1:8000/login page I know this works in fresh projects with make:auth module, I don't know why stopped workin.
In my home I have this
public function __construct()
{
$this->middleware('auth');
}
and my routes file:
Route::get('/', function () {
return view('auth\login');
});
Auth::routes();
Route::get('home', 'HomeController@index')->name('home');
Route::post('create','IngresarSolicitud@store');
Route::get('/home','IngresarSolicitud@informacionempleado');
Aucun commentaire:
Enregistrer un commentaire