Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class Order extends Model |
||
11 | { |
||
12 | use HasFactory; |
||
13 | |||
14 | protected $dates = ["created_at","updated_at"]; |
||
15 | |||
16 | public function status(){ |
||
18 | } |
||
19 | |||
20 | public function typePayment(){ |
||
21 | return $this->belongsTo(TypePayment::class,'type_payment_id'); |
||
22 | } |
||
23 | |||
24 | public function user(){ |
||
25 | return $this->belongsTo(User::class,'user_id'); |
||
26 | } |
||
27 | |||
28 | public function products(){ |
||
30 | } |
||
31 | } |
||
32 |