Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 2 |
| LeaveLogs | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 2 |
| Leave | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| user | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App\Models\Leave; | |
| use Illuminate\Database\Eloquent\Model; | |
| use App\Models\Admin\Leave; | |
| use App\Models\Auth\User; | |
| use App\Models\Leave\ApplyLeave; | |
| use OwenIt\Auditing\Contracts\Auditable; | |
| class LeaveLogs extends Model implements Auditable | |
| { | |
| use \OwenIt\Auditing\Auditable; | |
| protected $fillable = ['id','updated_balance','old_balance','leave_id','amount','operation','user_id','comments']; | |
| public function Leave() | |
| { | |
| return $this->belongsTo(Leave::class); | |
| } | |
| public function user() | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| } |