serenysoft / nova-permissions

Laravel Nova 4 Roles & Permissions
72 stars 25 forks source link

Installation 'README.md' -- Database Seeding #30

Closed MATTOFIRE closed 1 year ago

MATTOFIRE commented 1 year ago

Hi,

there is an error in documentation for "Publish our Seeder with the following command:"

if run - php artisan vendor:publish --provider="Sereny\NovaPermissions\ToolServiceProvider" --tag="seeders"- not find e file php.

the --tag is 'No publishable resources for tag [seeders]. ' -> the tag currect is 'seeds'.

inside ToolServiceProvider.php :

public function boot(Filesystem $filesystem)

$this->publishes([ DIR . '/../database/seeds/RolesAndPermissionsSeeder.php.stub' => $this->app->databasePath() . "/seeds/RolesAndPermissionsSeeder.php", ], 'seeds');

should be corrected.

Many thanks

MATTOFIRE commented 1 year ago

or better. I rephrase. in Readme.md inside codepack file is correct but in the documentation https://github.com/serenysoft/nova-permissions is --tag=seeders

but really seeders don't run. when publishes seeders create a directory seeds and clearly when we run db:seed it has a dependency conflict.

leandrogehlen commented 1 year ago

Close dfea808