| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ChequeDetail extends Model |
||
| 9 | { |
||
| 10 | protected $table = 'trn_cheque_details'; |
||
| 11 | |||
| 12 | protected $fillable = [ |
||
| 13 | 'payment_id', |
||
| 14 | 'number', |
||
| 15 | 'date', |
||
| 16 | 'status', |
||
| 17 | 'created_by', |
||
| 18 | 'updated_by', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | //Eloquence Search mapping |
||
| 22 | use Eloquence; |
||
| 23 | |||
| 24 | protected $searchableColumns = [ |
||
| 25 | 'number' => 20, |
||
| 26 | ]; |
||
| 27 | |||
| 28 | public function createdBy() |
||
| 29 | { |
||
| 30 | return $this->belongsTo('App\User', 'created_by'); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function updatedBy() |
||
| 36 | } |
||
| 37 | |||
| 38 | public function Payment() |
||
| 41 | } |
||
| 42 | } |
||
| 43 |