Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1592 Revision 1593
Zeile 279... Zeile 279...
279
            $path = collect();
279
            $path = collect();
280
            $father = $root;
280
            $father = $root;
281
            while ( $father != -1 && !is_null( $father ) )
281
            while ( $father != -1 && !is_null( $father ) )
282
            {
282
            {
283
                $row = Directory::where( "id", $father )->whereIn( "status", [ 0, 2 ] )->firstOrFail();
283
                $row = Directory::where( "id", $father )->whereIn( "status", [ 0, 2 ] )->firstOrFail();
284
                dump( $row );
-
 
285
                $father = $row->directory_id;
284
                $father = $row->directory_id;
286
                $path[] = $row;
285
                $path[] = $row;
287
            }
286
            }
288
            $path = $path->reverse();
287
            $path = $path->reverse();
-
 
288
            dump( $path );
289
            return $path;
289
            return $path;
290
        }
290
        }
Zeile 291... Zeile 291...
291
 
291