Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zizaco entrust does not create the entrust.php

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.

like image 223
meluluji Avatar asked Sep 11 '26 12:09

meluluji


2 Answers

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.

like image 50
theMohammedA Avatar answered Sep 13 '26 07:09

theMohammedA


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

like image 29
Veerendra Borra Avatar answered Sep 13 '26 07:09

Veerendra Borra