Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1061 | Revision 1068 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1061 Revision 1067
Zeile 38... Zeile 38...
38
        $_SESSION["loadingGif"] = "/css/" . $site . "_new/images/loading.gif";
38
        $_SESSION["loadingGif"] = "/css/" . $site . "_new/images/loading.gif";
39
    }*/
39
    }*/
Zeile 40... Zeile 40...
40
 
40
 
41
    Route::view( '/admin/login', "admin/login" )->name( 'login' );
41
    Route::view( '/admin/login', "admin/login" )->name( 'login' );
42
    Route::post( '/admin/login', [ BackendController::class, 'store' ] );
42
    Route::post( '/admin/login', [ BackendController::class, 'store' ] );
43
    Route::prefix( 'admin' )->middleware( 'auth' )->group( function ()
43
    Route::prefix( 'admin' )->middleware( 'auth:admin' )->group( function ()
44
    {
44
    {
45
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
45
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
46
        Route::view( "/index", "admin/index" );
46
        Route::view( "/index", "admin/index" );
47
    } );
47
    } );