StocksNew/Modules/Meeting/app/Models/Meeting.php

42 lines
762 B
PHP
Raw Permalink Normal View History

2024-08-27 12:03:06 +00:00
<?php
namespace Modules\Meeting\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Modules\PMS\Models\Client;
class Meeting extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $table = 'tbl_meetings';
protected $fillable = [
'title',
'date',
'meeting_with',
'client_id',
'members',
'start_time',
'end_time',
'location',
'description',
];
protected $casts = [
'members' => 'array',
'date' => 'date',
];
public $appends = [];
public function client()
{
return $this->belongsTo(Client::class, 'client_id');
}
}