Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1089 Revision 1092
Zeile 11... Zeile 11...
11
 
11
 
12
    $w = new Web();
12
    $w = new Web();
13
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
13
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
14
    \View::share( "web", $GLOBALS["web"] );
14
    \View::share( "web", $GLOBALS["web"] );
-
 
15
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
15
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
16
    $navi = Module::with( 'toool.property' )->get();
16
    \View::share( "navi", $webRechte );
17
    \View::share( "navi", $navi );
17
    foreach ( $webRechte as $web_recht )
18
    foreach ( $webRechte as $web_recht )
18
    {
19
    {
19
        $property = $web_recht->property;
20
        $property = $web_recht->property;
20
        $tool = $property->tool;
21
        $tool = $property->tool;