Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
CRAP | |
50.00% |
1 / 2 |
| WaybillAuditLog | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
2.50 | |
50.00% |
1 / 2 |
| waybill | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 1 |
|||
| user | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\SoftDeletes; | |
| class WaybillAuditLog extends Model | |
| { | |
| use SoftDeletes; | |
| protected $table='waybillAuditLogs'; | |
| protected $fillable=[ | |
| 'waybill_id','audit_stage','user_id' | |
| ]; | |
| public function waybill(){ | |
| return $this->belongsTo('App\Waybill','waybill_id','id'); | |
| } | |
| public function user(){ | |
| return $this->belongsTo('App\User','user_id','id'); | |
| } | |
| } |