Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3.04k stars 885 forks source link

Update UploadersRepository.php #5551

Closed teunes1 closed 1 month ago

teunes1 commented 1 month ago

Preventing php artisan optimize issues from not working when config cannot be found.

WHY

BEFORE - What was wrong? What was happening before this PR?

Locally everything works but on development server deployments are not possible because the pipeline gets blocked not able to load the uploaders array. Even if it is present and file has read permission.

AFTER - What is happening after this PR?

checking if config is available otherwise fallback on empty array.

Is it a breaking change?

Only for me

How can we test the before & after?

think not needed with this simple code

welcome[bot] commented 1 month ago

BOOM! Your first PR with us, thank you so much! Someone will take a look at it shortly.

Please keep in mind that:

Thank you!

-- Justin Case The Backpack Robot

jcastroa87 commented 1 month ago

Hello @teunes1 thanks for you PR i will ask @pxpm to check it.

Thanks again.

Cheers.

teunes1 commented 1 month ago

Not sure what the issues was that caused my error in the first place. But doing the composer update on the dev server made it work. Now the pipeline does work as well. So the core issues was probably with rsync on my end.

Just writing this if everyone else does get this problem.

pxpm commented 1 month ago

Thanks for getting back with the answer @teunes1 and for the PR 🙏

I am closing this since it seems you fixed the issue. Please let us know if you find other issues or have any suggestions.

Cheers