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