28 lines
554 B
PHP
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');
|
|
}
|
|
}
|