status priority

This commit is contained in:
2024-04-16 17:14:39 +05:45
parent de082f8bca
commit 5c8cfeb854
6 changed files with 60 additions and 6 deletions

View File

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