Test Failed
Push — dev5 ( c43caf...f1e67f )
by Ron
06:59
created

Customers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A CustomerSystems() 0 3 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Customers extends Model
8
{
9
    protected $primaryKey = 'cust_id';
10
    protected $fillable = ['cust_id', 'name', 'dba_name', 'address', 'city', 'state', 'zip', 'active'];
11
    protected $hidden = ['created_at', 'deleted_at', 'updated_at'];
12
13
    public function CustomerSystems()
14
    {
15
        return $this->hasMany('App\CustomerSystems', 'cust_id', 'cust_id');
16
    }
17
18
19
20
21
22
23
    // public function customerFavs()
24
    // {
25
    //     return $this->belongsTo('App\CustomerFavs', 'cust_id', 'cust_id');
26
    // }
27
28
    // public function customerNotes()
29
    // {
30
    //     return $this->belongsTo('App\CustomerNotes', 'cust_id', 'cust_id');
31
    // }
32
33
    // public function fileLinks()
34
    // {
35
    //     return $this->belongsTo('App\FileLinks', 'cust_id', 'cust_id');
36
    // }
37
}
38