Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1068 Revision 1070
Zeile 36... Zeile 36...
36
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/images/loading.gif" ) )
36
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/images/loading.gif" ) )
37
    {
37
    {
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::get( '/admin/login', [ BackendController::class, 'create' ] )->name( 'login' );
42
    Route::post( '/admin/login', [ BackendController::class, 'store' ] );
42
    Route::post( '/admin/login', [ BackendController::class, 'store' ] );
43
    Route::prefix( 'admin' )->middleware( 'auth:admin' )->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' );