Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

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

Revision 79 Revision 80
Zeile 25... Zeile 25...
25
        protected function lockedManufacturers(): Attribute
25
        protected function lockedManufacturers(): Attribute
26
        {
26
        {
27
            return Attribute::make(
27
            return Attribute::make(
28
                get: function ( string $value )
28
                get: function ( string $value )
29
                {
29
                {
-
 
30
                    $manufacturer = new Manufacturer();
30
                    if ( $this->shop_id > 1 )
31
                    if ( $this->shop_id > 1 )
31
                    {
32
                    {
32
                        $manufacturer = Manufacturer::setConnection( 'shop' . $this->shop_id );
33
                        $manufacturer->setConnection( 'shop' . $this->shop_id );
33
                    }
-
 
34
                    else
-
 
35
                    {
-
 
36
                        $manufacturer = Manufacturer::setConnection( 'default' );
-
 
37
                    }
34
                    }
38
                    $manufacturer->whereIn( "id", json_decode( $value, true ) )->get();
35
                    $manufacturer->whereIn( "id", json_decode( $value, true ) )->get();
39
                }
36
                }
Zeile 40... Zeile 37...
40
 
37