3

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.

meluluji
  • 319
  • 1
  • 2
  • 15

4 Answers4

6

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.

theMohammedA
  • 677
  • 7
  • 11
1

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

Community
  • 1
  • 1
Veerendra Borra
  • 1,286
  • 14
  • 24
0

I solved it by running

php artisan config:cache

Before running

php artisan vendor:publish
brandonlabs
  • 311
  • 3
  • 7
0

run this command

php artisan config:cache

then run

php artisan vendor:publish
Ahmed Rakha
  • 170
  • 2
  • 9