Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Team
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Http\Models\Teams;
4
5use Mpociot\Teamwork\TeamInvite;
6use MongoDB\Laravel\Eloquent\Model;
7use Illuminate\Support\Facades\Config;
8use Mpociot\Teamwork\Events\UserInvitedToTeam;
9use Mpociot\Teamwork\Traits\TeamworkTeamTrait;
10
11class Team extends Model
12{
13    use TeamworkTeamTrait;
14
15    /**
16     * The database table used by the model.
17     *
18     * @var string
19     */
20    protected $table;
21
22    /**
23     * @var array
24     */
25    protected $fillable = ['name', 'owner_id'];
26
27    /**
28     * Creates a new instance of the model.
29     *
30     * @param array $attributes
31     */
32    public function __construct(array $attributes = [])
33    {
34        parent::__construct($attributes);
35        $this->table = Config::get('teamwork.teams_table');
36    }
37}