Add user invitation facilities RSM-5

Adds user invitation to teams, and framework for assigning taems
Also adds user acc. deletion.
This commit is contained in:
2020-10-08 19:19:10 +01:00
parent 75f4404259
commit 596a469e15
26 changed files with 828 additions and 49 deletions

View File

@@ -13,7 +13,7 @@ use GrahamCampbell\Markdown\Facades\Markdown;
class Vacancy extends Model
{
use UsedByTeams;
//use UsedByTeams;
public $fillable = [
@@ -25,7 +25,8 @@ class Vacancy extends Model
'vacancyFormID',
'vacancyCount',
'vacancyStatus',
'vacancySlug'
'vacancySlug',
'team_id'
];
@@ -49,6 +50,12 @@ class Vacancy extends Model
}
public function teams()
{
return $this->belongsToMany('App\Team', 'team_has_vacancy');
}
public function forms()
{
return $this->belongsTo('App\Form', 'vacancyFormID', 'id');