Revision 2 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpnamespace App\Models;use Illuminate\Database\Eloquent\Factories\HasFactory;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\Relations\BelongsTo;use Illuminate\Database\Eloquent\Relations\BelongsToMany;use Illuminate\Database\Eloquent\Relations\HasMany;use Illuminate\Database\Eloquent\Relations\HasOne;/*** App\Models\Order** @property int $id* @property int|null $shop_id* @property int|null $user_id* @property int|null $order_type_id* @property int|null $shipping_group_id* @property int|null $payment_method_id* @property int|null $bill_addr_id* @property int|null $ship_addr_id* @property int $paid* @property string|null $paid_at* @property string|null $paid_comment* @property string $foreign_id* @property string $foreign_payment_id* @property string $status* @property string $total_amount_buffer* @property string $item_status_buffer* @property string $invoice_status_buffer* @property string $delivery_note_status_buffer* @property int $tax* @property string $comment* @property string $external_comment* @property string $note* @property string $additional_info* @property string $kk_info* @property string $created_by* @property string $updated_by* @property \Illuminate\Support\Carbon|null $created_at* @property \Illuminate\Support\Carbon|null $updated_at* @property-read \App\Models\OrderAddress|null $billAddr* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\OrderItem> $orderItem* @property-read int|null $order_item_count* @property-read \App\Models\OrderType|null $orderType* @property-read \App\Models\OrderAddress|null $shipAddr* @property-read \App\Models\Shop|null $shop* @method static \Database\Factories\OrderFactory factory($count = null, $state = [])* @method static \Illuminate\Database\Eloquent\Builder|Order newModelQuery()* @method static \Illuminate\Database\Eloquent\Builder|Order newQuery()* @method static \Illuminate\Database\Eloquent\Builder|Order query()* @method static \Illuminate\Database\Eloquent\Builder|Order whereAdditionalInfo($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereBillAddrId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereComment($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereCreatedAt($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereCreatedBy($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereDeliveryNoteStatusBuffer($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereExternalComment($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereForeignId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereForeignPaymentId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereInvoiceStatusBuffer($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereItemStatusBuffer($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereKkInfo($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereNote($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereOrderTypeId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order wherePaid($value)* @method static \Illuminate\Database\Eloquent\Builder|Order wherePaidAt($value)* @method static \Illuminate\Database\Eloquent\Builder|Order wherePaidComment($value)* @method static \Illuminate\Database\Eloquent\Builder|Order wherePaymentMethodId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereShipAddrId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereShippingGroupId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereShopId($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereStatus($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereTax($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereTotalAmountBuffer($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereUpdatedAt($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereUpdatedBy($value)* @method static \Illuminate\Database\Eloquent\Builder|Order whereUserId($value)* @mixin \Eloquent*/class Order extends Model{use HasFactory;public function orderItem(): HasMany{return $this->hasMany( OrderItem::class )->orderBy( 'rank' );}public function orderType(): BelongsTo{return $this->belongsTo( OrderType::class );}public function billAddr(): BelongsTo{return $this->belongsTo( OrderAddress::class, 'bill_addr_id' );}public function shop(): BelongsTo{return $this->belongsTo( Shop::class );}public function shipAddr(): BelongsTo{return $this->belongsTo( OrderAddress::class, 'ship_addr_id' );}}