imTigger / laravel-job-status

Add ability to track Job progress, status and result dispatched to Queue.
MIT License
407 stars 60 forks source link

php artisan vendor:publish --provider not working? #12

Closed Dayjo closed 6 years ago

Dayjo commented 6 years ago

Hi there,

Been looking to manage the status of jobs and came across this package but unfortunately, I was unable to get it installed with the instructions from the readme.

I've pulled it in with composer, but when I run;

php artisan vendor:publish --provider=\Imtigger\LaravelJobStatus\LaravelJobStatusServiceProvider

It says Publishing complete. but there are no migrations or config file created.

I'm running PHP 7.1, Laravel 5.5.

Instead I just ran php artisan vendor:publish which then gives a list of files to publish, I can choose this one and it works ok. I don't know if this is a change that Laravel has made?

judgej commented 6 years ago

This works for me:

./artisan vendor:publish --provider="Imtigger\LaravelJobStatus\LaravelJobStatusServiceProvider"

The provider must be in quotes and without a leading back-slash. I think this is a Laravel 5.5 thing, maybe a PHP 7.1 thing, may be a bug, may be a feature. Either way, vendor:publish is not very forgiving. The need for quotes is a strange one. That may be about the back-slashes being treated differently on the shell command line.

Dayjo commented 6 years ago

@judgej yeah I managed to get it working, just raising the issue with the README :)

imTigger commented 6 years ago

Thank you 👍 I have just updated the README.md