php – Set default Storage::disk() for Laravel 7-ThrowExceptions

Exception or error:

Is there a way using Laravel to set my default disk to S3?

Throughout my project I am calling Storage::disk('s3') but it would be simpler if I could just call Storage and S3 is the default disk.

I couldn’t find anything on the documentation about doing this, maybe it’s not a feature because of how Storage works over all.

Any help would be great, thanks!

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *