| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UserCustomerBookmark extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $guarded = ['updated_at', 'created_at']; |
||
| 13 | protected $hidden = ['updated_at', 'created_at', 'Customer', 'id', 'user_id']; |
||
| 14 | protected $appends = ['name', 'slug']; |
||
| 15 | |||
| 16 | public function Customer() |
||
| 17 | { |
||
| 18 | return $this->belongsTo(Customer::class, 'cust_id', 'cust_id'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getNameAttribute() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getSlugAttribute() |
||
| 31 |