I downloaded a package with composer. In this case the package is Riari Forum-Laravel. When I run php artisan vendor:publish
, it says there is nothing to publish and I don't know why.
Problems with Vendor:Publish in laravel 5
3k views Asked by Alejandro Jurado At
4
There are 4 answers
1
On
This always happens because Laravel cannot find the required references from your optimized/cached loader files.
Once you add the vendor's class to config/app.php
, I have a script that runs:
php artisan config:cache
php artisan cache:clear
php artisan optimize (optional)
Post this, running php artisan vendor:publish --provider="xyz"
will definitely work.
To make Laravel aware that you have installed a package you need to tell the framework that. So open your
config/app.php
and add the forum package to your packages array:After that you can do the publish command.