I am working on building a front-end for managing users / roles / permissions with the Spatie > Permissions package in the backend. A feature I am seeking to implement is selecting a Permission and having this selection then display all Users having the selected permission. Using php artisan tinker, I can use the statement: SpatiePermissionModelPermission::with(“roles.users”)->find(59);, with 59 representing the
Tag: tinker
What are the CRUD Commands that have to be run in Tinker with Laravel 8
When I run the known tinder CRUD Commands in Laravel 8, they aren’t working What I ran was the Create and Find commands $user = new AppUser; AppUser::all(); But they aren’t working, I knew that in …
Unable to use Laravel Factory in Tinker
I am unable Model Factory in Laravel Tinker. //ItemFactory.php class ItemFactory extends Factory { /** * The name of the factory’s corresponding model. * * @var string */ …