Compare commits
2 Commits
dda77f4ac7
...
8b08a54f04
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b08a54f04 | |||
|
|
290ad727fa |
30
app/Models/VehicleEntry.php
Normal file
30
app/Models/VehicleEntry.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
|
class VehicleEntry extends Model
|
||||||
|
{
|
||||||
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'plant_id',
|
||||||
|
'vehicle_number',
|
||||||
|
'entry_time',
|
||||||
|
'exit_time',
|
||||||
|
'duration',
|
||||||
|
'type',
|
||||||
|
'created_at',
|
||||||
|
'created_by',
|
||||||
|
'updated_at',
|
||||||
|
'updated_by',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function plant(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Plant::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user