master_template/app/Models/Enquiries.php

28 lines
554 B
PHP
Raw Normal View History

2024-06-10 12:21:58 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Enquiries extends Model
{
use HasFactory;
protected $primaryKey = 'enquiry_id';
public $timestamps = true;
protected $fillable = [
'name',
'phone',
'email',
'enquiry_type',
'message',
'preparationclassoffers_id',
];
public function class ()
{
return $this->belongsTo(Preparationclassoffers::class, 'preparationclassoffers_id');
}
}