Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hamelraj's avatar

Is there any way to add php artisan vendor:publish without changing Authentication?

My Auth path and all i have changed the way i like but when i add i add some package for composer.json finally i have to add php artisan vendor:publish then all the Auth changes will not work properlly so what i want is when i add i php artisan vendor:publish it wont change my Authedication is it possible?

0 likes
1 reply
bobbybouwmann's avatar
Level 88

Of course you can!

php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider"

So in your case it's something like this

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

Remember that you can always run php artisan vendor:publish --help to find out all possible commands

1 like

Please or to participate in this conversation.