Why the file entrust.php is not created when I run this:
php artisan vendor:publish
I'm following this config and this is my composer.json
"zizaco/entrust": "5.2.x-dev"
"You can also publish the configuration for this package to further customize table names and model namespaces. Just use php artisan vendor:publish and a entrust.php file will be created in your app/config directory." But the file entrust.php is not created. What can I do? This is odd.
In the link you provided they say and, if it does not appear, manually copy the /vendor/zizaco/entrust/src/config/config.php file in your config directory and rename it entrust.php.
just try this add
"zizaco/entrust": "5.2.x-dev" in composer.json
then composer update. Then in your config/app.php add
Zizaco\Entrust\EntrustServiceProvider::class,
in the providers array and
'Entrust' => Zizaco\Entrust\EntrustFacade::class,
Next try in your terminal to publish and see in your config
php artisan vendor:publish --provider="Zizaco\Entrust\EntrustServiceProvider"
check link for how to use zizaco
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With