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

Customers::CustomerSystems()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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