StocksNew/Modules/Meeting/app/Models/Meeting.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

42 lines
762 B
PHP

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