File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 32
32
class Package extends Model implements HasMedia
33
33
{
34
34
use Filterable;
35
+ // TODO: Fix admin detector in laravel model status package
35
36
use HasActiveScope;
36
37
use HasSlug;
37
38
use HasStatus;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Illuminate \Support \Facades \Auth ;
4
-
5
3
return [
6
4
7
5
/*
27
25
| The default is set to 10 characters, which is enough for "active"/"inactive".
28
26
|
29
27
*/
30
- 'column_length ' => env ('MODEL_STATUS_COLUMN_LENGTH ' , ' inactive ' ),
28
+ 'column_length ' => env ('MODEL_STATUS_COLUMN_LENGTH ' , 10 ),
31
29
32
30
/*
33
31
|--------------------------------------------------------------------------
71
69
| }
72
70
|
73
71
*/
74
- 'admin_detector ' => function () {
75
- return Auth::check () && Auth::user ()->is_admin ;
76
- },
72
+ 'admin_detector ' => 'is_admin ' , // TODO: Fix admin detector in laravel model status package
77
73
];
You can’t perform that action at this time.
0 commit comments