/
home
/
henzagold
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/henzagold/server/app/Models/SingleCustomerOrderItems.php
<?php namespace App\Models; use App\DB\Selector; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Hash; class SingleCustomerOrderItems extends Model { use HasFactory; use SoftDeletes; use Selector; //protected $connection = 'pgsql'; protected $table = 'orders_orderitem'; public $fillable=[ 'title', 'price',//قیمت کل با تخفیف 'approximate_price', 'qty',//تعداد 'deposit', 'amount_paid', 'approximate_gram', 'exact_gram', 'debtor_amount', 'is_active', 'supply_at', 'delivery_at', 'order_id', 'product_id', 'variant_id', 'grams', 'rial_pay', 'variant_title', 'is_preorder',//پیش سفارش 'promotion_id', 'promotion_item_id', 'total_discount', 'total_price',//قیمت بدون تخفیف 'gold_price_in_formula', 'branch_id' ]; protected $casts = [ 'is_preorder'=>'boolean' ]; public function product() { return $this->belongsTo('App\Models\Product' , 'product_id')->with('thumb'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure