1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace BristolSU\ControlDB\Models\Pivots; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | use Illuminate\Database\Eloquent\SoftDeletes; |
||
7 | |||
8 | /** |
||
9 | * Handles the linking of a user to a group |
||
10 | */ |
||
0 ignored issues
–
show
|
|||
11 | class UserGroup extends Model |
||
12 | { |
||
13 | use SoftDeletes; |
||
14 | |||
15 | /** |
||
16 | * Fillable attributes |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $fillable = [ |
||
21 | 'user_id', 'group_id' |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * Indicates if the IDs are auto-incrementing. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | public $incrementing = true; |
||
30 | |||
31 | /** |
||
32 | * Table to use |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | public $table = 'control_group_user'; |
||
37 | |||
38 | } |