Hi, had an issue installing plugin in a new Laravel 10 project on a Windows PC.
It failed on *"There is no permission named `users.for guardweb`."** error.
Migrations run smoothly and created DB structure.
php artisan about output:
Environment ..................................................................................................................
Application Name ..................................................................................................... Laravel
Laravel Version ...................................................................................................... 10.38.2
PHP Version ............................................................................................................ 8.3.1
Composer Version ....................................................................................................... 2.6.6
Environment ............................................................................................................ local
Debug Mode ........................................................................................................... ENABLED
URL ................................................................................................................ localhost
Maintenance Mode ......................................................................................................... OFF
Cache ........................................................................................................................
Config ............................................................................................................ NOT CACHED
Events ............................................................................................................ NOT CACHED
Routes ............................................................................................................ NOT CACHED
Views ............................................................................................................. NOT CACHED
Drivers ......................................................................................................................
Broadcasting ............................................................................................................. log
Cache ................................................................................................................... file
Database ............................................................................................................... mysql
Logs .......................................................................................................... stack / single
Mail .................................................................................................................... smtp
Queue ................................................................................................................... sync
Session ................................................................................................................. file
Filament .....................................................................................................................
Packages ..................................................................... filament, forms, notifications, support, tables
Version ............................................................................................................... v3.1.0
Views .......................................................................................................... NOT PUBLISHED
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found.
Using version ^2.0 for solution-forest/filament-access-management
PS C:\Lavoro\lara_lab> php artisan optimize:clear
There is no permission named users.* for guard web.
at vendor\spatie\laravel-permission\src\Exceptions\PermissionDoesNotExist.php:11
7▕ class PermissionDoesNotExist extends InvalidArgumentException
8▕ {
9▕ public static function create(string $permissionName, string $guardName = '')
10▕ {
➜ 11▕ return new static("There is no permission named {$permissionName} for guard {$guardName}.");
12▕ }
13▕
14▕ public static function withId(int $permissionId, string $guardName = '')
15▕ {
Hi, had an issue installing plugin in a new Laravel 10 project on a Windows PC.
It failed on *"There is no permission named `users.
for guard
web`."** error.Migrations run smoothly and created DB structure.
php artisan about output:
Environment ..................................................................................................................
Application Name ..................................................................................................... Laravel
Laravel Version ...................................................................................................... 10.38.2
PHP Version ............................................................................................................ 8.3.1
Composer Version ....................................................................................................... 2.6.6
Environment ............................................................................................................ local
Debug Mode ........................................................................................................... ENABLED
URL ................................................................................................................ localhost
Maintenance Mode ......................................................................................................... OFF
Cache ........................................................................................................................
Config ............................................................................................................ NOT CACHED
Events ............................................................................................................ NOT CACHED
Routes ............................................................................................................ NOT CACHED
Views ............................................................................................................. NOT CACHED
Drivers ......................................................................................................................
Broadcasting ............................................................................................................. log
Cache ................................................................................................................... file
Database ............................................................................................................... mysql
Logs .......................................................................................................... stack / single
Mail .................................................................................................................... smtp
Queue ................................................................................................................... sync
Session ................................................................................................................. file
Filament .....................................................................................................................
Packages ..................................................................... filament, forms, notifications, support, tables
Version ............................................................................................................... v3.1.0
Views .......................................................................................................... NOT PUBLISHED
Livewire .....................................................................................................................
Livewire .............................................................................................................. v3.3.3
node --version v20.10.0
Transcript follows:
PS C:\Lavoro\lara_lab> composer require solution-forest/filament-access-management ./composer.json has been updated Running composer update solution-forest/filament-access-management Loading composer repositories with package information Updating dependencies Lock file operations: 4 installs, 0 updates, 0 removals
Installing solution-forest/filament-access-management (2.0.0): Extracting archive Generating optimized autoload files
INFO Discovering packages.
blade-ui-kit/blade-heroicons ............................................................................................ DONE blade-ui-kit/blade-icons ................................................................................................ DONE
filament/actions ........................................................................................................ DONE
filament/filament ....................................................................................................... DONE
filament/forms .......................................................................................................... DONE
filament/infolists ...................................................................................................... DONE
filament/notifications .................................................................................................. DONE
filament/support ........................................................................................................ DONE
filament/tables ......................................................................................................... DONE
filament/widgets ........................................................................................................ DONE
guava/filament-icon-picker .............................................................................................. DONE
kirschbaum-development/eloquent-power-joins ............................................................................. DONE
laravel/breeze .......................................................................................................... DONE
laravel/sail ............................................................................................................ DONE
laravel/sanctum ......................................................................................................... DONE
laravel/tinker .......................................................................................................... DONE
livewire/livewire ....................................................................................................... DONE
nesbot/carbon ........................................................................................................... DONE
nunomaduro/collision .................................................................................................... DONE
nunomaduro/termwind ..................................................................................................... DONE
ryangjchandler/blade-capture-directive .................................................................................. DONE
solution-forest/filament-access-management .............................................................................. DONE
solution-forest/filament-tree ........................................................................................... DONE
spatie/laravel-ignition ................................................................................................. DONE
spatie/laravel-permission ............................................................................................... DONE
INFO Successfully published assets!
INFO Configuration cache cleared successfully.
INFO Compiled views cleared successfully.
INFO Successfully upgraded!
101 packages you are using are looking for funding. Use the
composer fund
command to find out more!INFO No publishable resources for tag [laravel-assets]. No security vulnerability advisories found. Using version ^2.0 for solution-forest/filament-access-management PS C:\Lavoro\lara_lab> php artisan optimize:clear
INFO Clearing cached bootstrap files.
events .............................................................................................................. 7ms DONE
views .............................................................................................................. 11ms DONE
cache ............................................................................................................... 8ms DONE
route ............................................................................................................... 3ms DONE
config .............................................................................................................. 3ms DONE
compiled ........................................................................................................... 12ms DONE
PS C:\Lavoro\lara_lab> php artisan filament-access-management:install Publishing config... Publishing migrations... filament-access-management has been installed!
INFO Running migrations.
2023_12_23_185116_create_filament_admin_tables .................................................................. 1,039ms DONE
INFO Seeding database.
Spatie\Permission\Exceptions\PermissionDoesNotExist
There is no permission named
users.*
for guardweb
.at vendor\spatie\laravel-permission\src\Exceptions\PermissionDoesNotExist.php:11 7▕ class PermissionDoesNotExist extends InvalidArgumentException 8▕ { 9▕ public static function create(string $permissionName, string $guardName = '') 10▕ { ➜ 11▕ return new static("There is no permission named
{$permissionName}
for guard{$guardName}
."); 12▕ } 13▕ 14▕ public static function withId(int $permissionId, string $guardName = '') 15▕ {1 vendor\spatie\laravel-permission\src\Models\Permission.php:96 Spatie\Permission\Exceptions\PermissionDoesNotExist::create("users.*", "web")
2 vendor\spatie\laravel-permission\src\Traits\HasPermissions.php:449 Spatie\Permission\Models\Permission::findByName("users.*", "web")
PS C:\Lavoro\lara_lab>