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