Miguel Nogueira
596a469e15
Adds user invitation to teams, and framework for assigning taems Also adds user acc. deletion.
23 lines
363 B
PHP
23 lines
363 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Mpociot\Teamwork\TeamworkTeam;
|
|
|
|
class Team extends TeamworkTeam
|
|
{
|
|
public $fillable = [
|
|
'owner_id',
|
|
'name',
|
|
'description',
|
|
'openJoin'
|
|
];
|
|
|
|
|
|
public function vacancies()
|
|
{
|
|
return $this->belongsToMany('App\Vacancy', 'team_has_vacancy');
|
|
}
|
|
}
|