mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.25k stars 212 forks source link

Publish config #276

Closed Tegos closed 5 years ago

Tegos commented 5 years ago

Hello. Have a problem, after upgrade to 0.6, try to run: php artisan model-caching:publish --config from your documentation but it doesn't work throws an error: There are no commands defined in the "model-caching" namespace. Maybe it should be php artisan vendor:publish, but there are no publishes in provider.

Another problem: still used disabled: https://github.com/GeneaLabs/laravel-model-caching/blob/master/src/Traits/ModelCaching.php#L45

Environment

mikebronner commented 5 years ago

@Tegos Thanks for submitting this issue. Working on both problems you mentioned right now, should have a fix out shortly.

mikebronner commented 5 years ago

This should now be fixed in release 0.6.2. Please let me know how it works for you. Thanks!

tinhlesc commented 5 years ago

@mikebronner I have a same issue. I'm using version 0.6.2, laravel 5.8, php version 7.1, may be still this issue.

tinhlesc commented 5 years ago

But when I run command:

php artisan model:publish --config

It works fine. It will create laravel-model-caching.php file into config folder.

mikebronner commented 5 years ago

@letinh The correct command is: php artisan modelCache:publish --config. I wrote the command incorrectly in the docs. Sorry about that. But you can always list the available artisan commands using php artisan list if something isn't working as expected, which shows the correct commands for this package. :)

tinhlesc commented 5 years ago

@mikebronner thanks a lot. It works perfect.!!! 👍