Added visitor entries model file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
This commit is contained in:
30
app/Models/VisitorEntry.php
Normal file
30
app/Models/VisitorEntry.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 VisitorEntry extends Model
|
||||||
|
{
|
||||||
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'mobile_number',
|
||||||
|
'name',
|
||||||
|
'company',
|
||||||
|
'purpose_of_visit',
|
||||||
|
'type',
|
||||||
|
'in_time',
|
||||||
|
'out_time',
|
||||||
|
'photo',
|
||||||
|
'employee_master_id',
|
||||||
|
'number_of_person'
|
||||||
|
];
|
||||||
|
|
||||||
|
public function employeeMaster(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(EmployeeMaster::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user