first commit
This commit is contained in:
41
Modules/Meeting/app/Models/Meeting.php
Normal file
41
Modules/Meeting/app/Models/Meeting.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user