Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Inquiry extends Model |
||
9 | { |
||
10 | use HasFactory; |
||
11 | |||
12 | protected $guarded = []; |
||
13 | |||
14 | // Casts |
||
15 | protected $casts = [ |
||
16 | 'data' => 'array', |
||
17 | ]; |
||
18 | |||
19 | public function __construct(array $attributes = []) |
||
24 | } |
||
25 | |||
26 | |||
27 | // Relationships |
||
28 | public function product() |
||
29 | { |
||
30 | return $this->belongsTo(Product::class); |
||
31 | } |
||
32 | |||
33 | public function software() |
||
34 | { |
||
35 | return $this->belongsTo(Software::class); |
||
36 | } |
||
37 | |||
38 | public function service() |
||
41 | } |
||
42 | } |
||
43 |