status priority
This commit is contained in:
@ -5,6 +5,7 @@ namespace Modules\PMS\Models;
|
||||
use App\Traits\CreatedUpdatedBy;
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Modules\Employee\Models\Employee;
|
||||
|
||||
class Project extends Model
|
||||
{
|
||||
@ -19,4 +20,14 @@ class Project extends Model
|
||||
11 => 'Laravel',
|
||||
];
|
||||
|
||||
public function client()
|
||||
{
|
||||
return $this->belongsTo(Client::class, 'client_id');
|
||||
}
|
||||
|
||||
public function members()
|
||||
{
|
||||
return $this->belongsTo(Employee::class, 'members_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user