d13r/laravel-breadcrumbs

vendor:publish don't create the config/breadcrmbs.php

boomhq opened this issue · 5 comments

Hello guys,
Thanks for your wonderfull project.
I use it for the first time on laravel 5.5 and i have an issue.
When i typephp artisan vendor:publish --provider='DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider'
No file published in config/.

Thanks by advance

d13r commented

Works for me.

$ composer create-project --prefer-dist laravel/laravel lb-test
Installing laravel/laravel (v5.5.28)

$ cd lb-test/

$ composer require davejamesmiller/laravel-breadcrumbs
Using version ^4.2 for davejamesmiller/laravel-breadcrumbs

$ php artisan vendor:publish --provider='DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider'
Copied File [/vendor/davejamesmiller/laravel-breadcrumbs/config/breadcrumbs.php] To [/config/breadcrumbs.php]
Publishing complete.

$ ls config/
app.php  auth.php  breadcrumbs.php  broadcasting.php  cache.php  database.php  filesystems.php  mail.php  queue.php  services.php  session.php  view.php

Closing as not a bug - but if you can come up with a reproducible case where it happens let me know and I can re-open it.

Same on 4.2.0 try to update and let you know

Same issue on version 5. My setup is:

Laravel 5.6
Windows with XAMPP
Running Composer from Windows Command Line

I was able to get around it by manually copying the config file from /vendor/davejamesmiller/laravel-breadcrumbs/config/breadcrumbs.php

d13r commented

I don't use Windows - so maybe it's a Windows issue?

If one of you can confirm that, fix it and open a PR then I'll merge it.

Since I am developing on Windows environment I had the same issue. The file didn't publish. The solution is simple. You need to use double quotes.
php artisan vendor:publish --provider="DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider"