So, I have a code that create folder, csv, images inside storage folder in my Laravel project. It doesn’t work when I deploy it to 000webhost.
File::makeDirectory($path); //create directory
fputcsv($file, $headers, ";", '"'); //create csv
Storage::disk('local')->put('charts/'.$nama_survei.'/'.$image[0].'/'.$imageName, base64_decode($image[1])); //make png images
Laravel isn’t officially supported on the free platform due to certain features that Laravel requires being disabled on the free plan, putenv, getenv, setenv etc.
https://laravel.io/forum/04-16-2015-disabled-function-putenv
You can upgrade to premium where the features are enabled and working or you can mess around with it in the hopes it works.
There is a tutorial that might help
Deploying your Laravel Project to 000webhost
(Tested for Laravel 5.6)
Hi everyone! This tutorial will help you deploy your Laravel project into your 000webhost site in a professional manner. I am more good at writing code instead of writing articles, so lets get straight to the subject!
1. Uploading.
Before we start, your website must be ‘clean’. It must not contain a single file in it, that to prevent interface with Laravel. Please back up your current website content and databa…
Teodor might be of more assistance
When you login if you hover and see Details
That’ll give you a home path if needed.