Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1473 Revision 1474
Zeile 324... Zeile 324...
324
        return view( 'basket' );
324
        return view( 'basket' );
325
    } );
325
    } );
326
    Route::get( "/directory/{id}", function ( $id )
326
    Route::get( "/directory/{id}", function ( $id )
327
    {
327
    {
328
        list( $dirId, $dirName ) = explode( "-", $id, 2 );
328
        list( $dirId, $dirName ) = explode( "-", $id, 2 );
329
        $dirs = cache()->remember( 'subdirs_' . $dirId, 86400, function ()
329
        $dirs = cache()->remember( 'subdirs_' . $dirId, 86400, function ( $dirId )
330
        {
330
        {
331
            global $dirId;
-
 
332
            return $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
331
            return $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
333
                0,
332
                0,
334
                99
333
                99
335
            ] )->orderBy( 'kennung' )->orderBy( 'name' )->get();
334
            ] )->orderBy( 'kennung' )->orderBy( 'name' )->get();