| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total | 0.00% covered (danger) | 0.00% | 0 / 1 | 50.00% covered (danger) | 50.00% | 1 / 2 | CRAP | 50.00% covered (danger) | 50.00% | 1 / 2
WaybillAuditLog | 0.00% covered (danger) | 0.00% | 0 / 1 | 50.00% covered (danger) | 50.00% | 1 / 2 | 2.50 | 50.00% covered (danger) | 50.00% | 1 / 2
waybill | 0.00% covered (danger) | 0.00% | 0 / 1 | 2.00 | 0.00% covered (danger) | 0.00% | 0 / 1
user | 100.00% covered (success) | 100.00% | 1 / 1 | 1 | 100.00% covered (success) | 100.00% | 1 / 1

1 | <?php
2 |
3 | namespace App;
4 |
5 | use Illuminate\Database\Eloquent\Model;
6 | use Illuminate\Database\Eloquent\SoftDeletes;
7 |
8 | class WaybillAuditLog extends Model
9 | {
10 | use SoftDeletes;
11 | protected $table='waybillAuditLogs';
12 | protected $fillable=[
13 | 'waybill_id','audit_stage','user_id'
14 | ];
15 |
16 | public function waybill(){
17 | return $this->belongsTo('App\Waybill','waybill_id','id');
18 | }
19 | public function user(){
20 | return $this->belongsTo('App\User','user_id','id');
21 | }
22 | }