Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1084 Revision 1087
Zeile 10... Zeile 10...
10
    \View::share( "user_rechte", $user_rechte );*/
10
    \View::share( "user_rechte", $user_rechte );*/
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
    $web_rechte = WebProperty::with( [ "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
    foreach ( $web_rechte as $web_recht )
16
    foreach ( $webRechte as $web_recht )
17
    {
17
    {
-
 
18
        $property = $web_recht->property;
-
 
19
        $tool = $property->tool;
-
 
20
        $module = $tool->module;
18
        dd( $web_recht->tool );
21
        $GLOBALS["web_rechte"][$module->nume][$tool->button_name][$property->interner_name] = $property->Bezeichnung;
19
    }
22
    }
Zeile 20... Zeile 23...
20
    //dump( $web_rechte );
23
    //dump( $web_rechte );
21
 
24