Added dealer visit plan model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 30s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 30s
This commit is contained in:
33
app/Models/DealerVisitPlan.php
Normal file
33
app/Models/DealerVisitPlan.php
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
|
class DealerVisitPlan extends Model
|
||||||
|
{
|
||||||
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'employee_master_id',
|
||||||
|
'name',
|
||||||
|
'company',
|
||||||
|
'visit_plan_date',
|
||||||
|
'organizer',
|
||||||
|
'mobile_number',
|
||||||
|
'number_of_person',
|
||||||
|
'purpose_of_visit',
|
||||||
|
'mode_of_travel',
|
||||||
|
'status',
|
||||||
|
'created_by',
|
||||||
|
'updated_by',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function employeeMaster(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(EmployeeMaster::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user