2016-07-19 61 views
1

爲什麼不創建文件entrust.php當我運行此:Zizaco委託不創建entrust.php

php artisan vendor:publish 

我下面this配置,這是我composer.json

"zizaco/entrust": "5.2.x-dev" 

「你也可以發佈配置此包進一步定製表名和型號命名空間 只需使用PHP的工匠供應商:發佈和entrust.php文件將在您的應用程序/配置導演創建Y「。 但是沒有創建entrust.php文件。 我能做什麼?這很奇怪。

+0

也許你缺少權限,如果你是在Linux下試試sudo?或在Windows中以管理員身份打開cmd? – theMohammedA

+0

我正在使用Linux,我有權限。 – meluluji

+1

yeap ...現在我也讀了它..你真棒回覆如此迅速!感謝您的幫助 :) – meluluji

回答

4

在你所提供的鏈接,他們說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.

0

只是試試這個 添加

「zizaco /委託」:在composer.json 「5.2.x-dev的」

然後作曲家更新。 然後在你的config/app.php提供商陣列中添加

Zizaco\Entrust\EntrustServiceProvider::class, 

'Entrust' => Zizaco\Entrust\EntrustFacade::class, 

下一頁嘗試在終端公佈,看看在你的配置

PHP工匠供應商:發佈 --provider =「Zizaco \ Entrust \ EntrustServiceProvider」

check link for how to use zizaco