File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ This package contains all common non-opinionated code that is used in our Eclips
1414## Requirements
1515- PHP 8.2
1616- Filament 4
17- - Filament Shield plugin (to manage permissions)
1817- Laravel Scout
1918
2019See [ composer.json] ( composer.json ) for details.
Original file line number Diff line number Diff line change 4040 },
4141 "require" : {
4242 "php" : " ^8.2" ,
43- "bezhansalleh/filament-shield" : " ^4.0" ,
44- "datalinx/php-utils" : " ^2.5" ,
4543 "ext-intl" : " *" ,
44+ "datalinx/php-utils" : " ^2.5" ,
4645 "filament/filament" : " ^4.0" ,
4746 "filament/spatie-laravel-settings-plugin" : " ^4.0" ,
4847 "laravel/scout" : " ^10.14" ,
7271 " @php vendor/bin/testbench serve --ansi"
7372 ],
7473 "setup" : [
75- " @php vendor/bin/testbench vendor:publish --provider='Spatie\\ Permission\\ PermissionServiceProvider'" ,
76- " @php vendor/bin/testbench vendor:publish --tag='filament-shield-config'" ,
7774 " @php vendor/bin/testbench package:sync-skeleton"
7875 ]
7976 },
Original file line number Diff line number Diff line change 1717
1818uses (TestCase::class)
1919 ->use (RefreshDatabase::class)
20- ->beforeEach (function () {
21- // Seed roles and permissions with Filament Shield plugin
22- Artisan::call ('shield:generate ' , [
23- '--all ' => null ,
24- '--panel ' => 'admin ' ,
25- '--option ' => 'permissions ' ,
26- ]);
27- })
2820 ->in (__DIR__ );
2921
3022/*
Original file line number Diff line number Diff line change 77use Illuminate \Database \Eloquent \Factories \HasFactory ;
88use Illuminate \Foundation \Auth \User as Authenticatable ;
99use Illuminate \Notifications \Notifiable ;
10- use Spatie \Permission \Traits \HasRoles ;
1110use Workbench \Database \Factories \UserFactory ;
1211
1312class User extends Authenticatable implements FilamentUser
1413{
15- use HasFactory, HasRoles, Notifiable;
14+ use HasFactory, Notifiable;
1615
1716 /**
1817 * The attributes that are mass assignable.
Original file line number Diff line number Diff line change 22
33namespace Workbench \App \Providers ;
44
5- use BezhanSalleh \FilamentShield \FilamentShieldPlugin ;
65use Filament \Http \Middleware \Authenticate ;
76use Filament \Http \Middleware \DisableBladeIconComponents ;
87use Filament \Http \Middleware \DispatchServingFilamentEvent ;
@@ -42,9 +41,6 @@ public function panel(Panel $panel): Panel
4241 ->authMiddleware ([
4342 Authenticate::class,
4443 ])
45- ->plugins ([
46- FilamentShieldPlugin::make (),
47- ])
4844 ->pages ([
4945 Dashboard::class,
5046 ]);
You can’t perform that action at this time.
0 commit comments