Background
On some legacy versions of Laravel, when you deploy your project, some default directories might be missing causing the application to not run.
The error produced will be similar to the next below:
/bootstrap/cache directory must be present and writable and Please provide a valid cache path
Run the following commands from the root of your Laravel application:
mkdir bootstrap/cache mkdir storage/framework mkdir storage/framework/cache mkdir storage/framework/views mkdir storage/framework/sessions