Authentication routes not defined, Standard 5.7

Asked

Viewed 41 times

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

  • I posted up there!

  • 1

    try this on your https://gist.github.com/AndreMart/0508510dbf03354bddd8cf9653cbc41eroutes

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.