Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1591 Revision 1592
Zeile 278... Zeile 278...
278
 
278
 
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 );
284
                $father = $row->directory_id;
285
                $father = $row->directory_id;
285
                $path[] = $row;
286
                $path[] = $row;
286
            }
287
            }
287
            $path = $path->reverse();
288
            $path = $path->reverse();