0
I can’t access the route http://localhost/login directly and nor http://localhost/logout.
Route::get('/', function () {
if(Auth::check()) {
return redirect('/dashboard');
} else {
return view('auth.login');
}
});
Auth::routes();
Route::group([
'prefix' => 'dashboard/admin',
'as' => 'admin.',
'middleware' => 'auth'
], function() {
Route::resource('clientes', 'ClientsController');
Route::resource('devedors', 'DevedorController');
Route::post('titulos/upload', 'TituloController@uploadSubmit')->name('titulos.upload');
Route::get('titulos/documents/{id}', 'TituloController@documents')->name('titulos.documents');
Route::resource('titulos', 'TituloController');
//Route::post('document/delete/{id}', 'DocumentController@delete')->name('document.delete');
Route::resource('document', 'DocumentController');
});
Route::get('/dashboard', 'HomeController@index')->name('home');
put your routes, you implemented the
php artisan make:auth
– André Martins
I posted up there!
– André Cabral
try this on your https://gist.github.com/AndreMart/0508510dbf03354bddd8cf9653cbc41eroutes
– André Martins