Laravel-permission: Unable to publish migration and config

Created on 15 Jun 2017  Â·  8Comments  Â·  Source: spatie/laravel-permission

These command are not working:
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="config"

However this is working:
php artisan vendor:publish
But it is publishing other unwanted migrations as well.

I have cleared the cache and dump the autoload as well. But no luck.
Did I miss something.

Most helpful comment

@sl-georgejimenez You might want to clear your configuration cache before publishing

php artisan config:clear

This solved my problem.

All 8 comments

Hi @limvus ,
You have to remove the quotes like...

php artisan vendor:publish --provider=Spatie\Permission\PermissionServiceProvider --tag=migrations
php artisan vendor:publish --provider=Spatie\Permission\PermissionServiceProvider --tag=config

Maybe it's a good idea to remove them from the readme.md.

Thanks @diazemiliano
That solved the issue.
Also, I think the ReadMe section should be updated with correct script - without quotes.

Could you send a PR to the readme? Thanks!

Freek Van der Herten
Samberstraat 69 D
2060 Antwerpen
T: +32 3 292 56 79
M: +32 495 84 27 91
https://spatie.be

On 15 June 2017 at 16:13, limvus notifications@github.com wrote:

Thanks @diazemiliano https://github.com/diazemiliano
That solved the issue.
Also, I think the ReadMe section should be updated with correct script -
without quotes.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/spatie/laravel-permission/issues/321#issuecomment-308746013,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdiDRen4US5eO9z2IC2BCJjeY0ZDw85ks5sETwIgaJpZM4N6qsa
.

I tried with no quotes but it is not working for me.
I am using Laravel 5.4.34
When I try php artisan migrate, there is no new migration.

I'm experiencing the same issue on Laravel v5.4.32. Any news on this one?

@sl-georgejimenez You might want to clear your configuration cache before publishing

php artisan config:clear

This solved my problem.

Thanks, @JoranSchipper, that works for me.

Just want to add that I was having the same issue with publishing the migration, tried to omit the quotes (didn't work), did a php artisan config:clear, tried to publish the migration again without quotes (didn't work), tried again with quotes (worked).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hosseinnedaei picture hosseinnedaei  Â·  3Comments

younus93 picture younus93  Â·  4Comments

devingray picture devingray  Â·  3Comments

holymp2006 picture holymp2006  Â·  4Comments

tripex picture tripex  Â·  3Comments