2017-02-10 2 views
0

내 Laravel 플러그인에서 파일을 게시하고있어, 그리고이 줄 :경로 찾을 수 없습니다 : <0>

$this->publishes([__DIR__ . '/../config/tournaments.php' => config_path('tournaments.php'), '']); 

내가 얻을 :

Can't locate path: <0> 

내가 config_path를 인쇄 할 때 때문에이 이상해 ('tournaments.php'), 괜찮습니다, 그리고 옆에, 파일은 잘 복사됩니다 .... 그래서, 모든 것이 작동하지만, 거기에 있으면 안되는이 메시지를 제거하고 싶습니다 ....

어떤 아이디어?

답변

0

publishes 배열에 빈 ''을 제거하려고 :

$this->publishes([__DIR__ . '/../config/tournaments.php' => config_path('tournaments.php'),]); 

Laravel은 tournaments.php 게시에 성공하지만 당신에게 빈 값에 대한 오류를 제공합니다. 여기에 더 많은 정보가 있습니다 : https://laravel.com/docs/5.4/packages#resources

관련 문제