laravelista / comments

Native comments for your Laravel application.
MIT License
745 stars 144 forks source link

How to change this config param in config/comment.php #60

Closed danhrcvn closed 5 years ago

danhrcvn commented 5 years ago

I tried to change some param in comments.php like guest_commenting=true, and then I run: php artisan vendor:publish --provider="Laravelista\Comments\ServiceProvider" --tag=config. After that in the view page I print the guest_commenting by {{dd(config('comments.approval_required'))}} but I was show false. How can I fix that? Thank you very much for your help.

mabasic commented 5 years ago

This is the process:

php artisan vendor:publish --provider="Laravelista\Comments\ServiceProvider" --tag=config

In your config/comments.php configuration file, change the approval_required field to true.

It should work. If it does not work let me know.

Potential issues

If you are using auto-discovery for this package and it still does not work. Try manually adding it to the list of service providers in the config/app.php file:

\Laravelista\Comments\ServiceProvider::class