Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1092 Revision 1093
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
-
 
3
    use App\Http\Controllers\BackendController;
3
    use App\Http\Controllers\BackendController;
4
    use App\Models\Module;
4
    use App\Models\Web;
5
    use App\Models\Web;
5
    use App\Models\WebProperty;
6
    use App\Models\WebProperty;
Zeile 6... Zeile 7...
6
    use Illuminate\Support\Facades\Route;
7
    use Illuminate\Support\Facades\Route;
Zeile 11... Zeile 12...
11
 
12
 
12
    $w = new Web();
13
    $w = new Web();
13
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
14
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
14
    \View::share( "web", $GLOBALS["web"] );
15
    \View::share( "web", $GLOBALS["web"] );
15
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
16
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
16
    $navi = Module::with( 'toool.property' )->get();
17
    $navi = Module::with( 'tool.property' )->get();
17
    \View::share( "navi", $navi );
18
    \View::share( "navi", $navi );
18
    foreach ( $webRechte as $web_recht )
19
    foreach ( $webRechte as $web_recht )
19
    {
20
    {
20
        $property = $web_recht->property;
21
        $property = $web_recht->property;