Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| ShortcutCategoryPosition | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| boot | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Models; |
| 4 | |
| 5 | use App\Http\Scopes\UserScope; |
| 6 | |
| 7 | class ShortcutCategoryPosition extends Moloquent |
| 8 | { |
| 9 | protected $table = 'shortcut_categories_position'; |
| 10 | |
| 11 | protected $fillable = [ |
| 12 | 'user_id', 'positions', |
| 13 | ]; |
| 14 | |
| 15 | protected static function boot() |
| 16 | { |
| 17 | parent::boot(); |
| 18 | static::addGlobalScope(new UserScope); |
| 19 | } |
| 20 | } |