master_template/app/Models/Enquiries.php
2024-06-10 18:06:58 +05:45

28 lines
554 B
PHP

<?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');
}
}