Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1430 Revision 1431
Zeile 43... Zeile 43...
43
        public function shipAddr(): BelongsTo
43
        public function shipAddr(): BelongsTo
44
        {
44
        {
45
            return $this->belongsTo( OrderAddress::class, 'ship_addr_id' );
45
            return $this->belongsTo( OrderAddress::class, 'ship_addr_id' );
46
        }
46
        }
Zeile 47... Zeile 47...
47
 
47
 
48
        public function item():BelongsToMany
48
        public function item():BelongsTo
49
        {
49
        {
50
            return $this->belongsToMany( Item::class, 'order_item_id' );
50
            return $this->belongsTo( Item::class, 'order_item_id' );
51
        }
51
        }