42 lines
762 B
PHP
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');
|
||
|
}
|
||
|
|
||
|
}
|