So Consider the following: This explodes when I hit any of these routes because: Is there not a way in laravel 5.6 to say: No I don’t want to use AppHttpControllers I want to use the namespace I specified? Answer Try with a slash ->namespace(‘AppModulesConfigControllers’)
Tag: laravel-5.6
How to convert null values to empty string in Laravel 5.6 json response?
I have this response from my Laravel 5.6: It comes from this Laravel PHP code: Is there any built-in function in Laravel 5.6 to change the null value to empty sting? I want to get back this json object: Any idea? Answer If you don’t have any choice and you really need it, you can do this using a middleware.
Laravel Cannot Access Image Stored in Storage Folder after Uploading in Server
I am trying to upload and retrieve image in my Laravel project. It worked perfectly in my local server, but after uploading in live server, its not working. I am using nginx. I have tried php artisan storage:link but it says The “public/storage” directory already exists I am using this line to open the stored image in a new page.