WIP: Road to 1.0.0 #1
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Mpociot\Teamwork\TeamworkTeam;
|
||||||
|
|
||||||
|
class Team extends TeamworkTeam
|
||||||
|
{
|
||||||
|
public $fillable = [
|
||||||
|
'owner_id',
|
||||||
|
'name'
|
||||||
|
];
|
||||||
|
}
|
|
@ -5,12 +5,12 @@ namespace App;
|
||||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
|
use Mpociot\Teamwork\Traits\UserHasTeams;
|
||||||
use Spatie\Permission\Traits\HasRoles;
|
use Spatie\Permission\Traits\HasRoles;
|
||||||
|
|
||||||
class User extends Authenticatable implements MustVerifyEmail
|
class User extends Authenticatable implements MustVerifyEmail
|
||||||
{
|
{
|
||||||
use Notifiable;
|
use UserHasTeams, Notifiable, HasRoles;
|
||||||
use HasRoles;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
|
|
Loading…
Reference in New Issue