| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CustomerFavs extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = ['user_id', 'cust_id']; |
||
| 10 | protected $appends = ['name']; |
||
| 11 | protected $hidden = ['created_at', 'updated_at', 'user_id', 'id']; |
||
| 12 | |||
| 13 | 2 | public function Customers() |
|
| 14 | { |
||
| 15 | 2 | return $this->belongsTo('App\Customers', 'cust_id', 'cust_id'); |
|
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function getNameAttribute() |
|
| 21 | } |
||
| 22 | } |
||
| 23 |