I believe the error you are getting is due to there not being an autload file generated by composer. Can you run composer install on your hosting? (if you can, you should) otherwise you'll need to run it locally and then make sure to upload the vendor directory
Trying to install Laravel app on hosting
Hi I hope someone can help me I have an application that uses the Laravel framework I have uploaded the main app to a folder on my host named script I have set my www.domain.com folder to use public as its root
so I have a folder structure like this:
/ script public
I have set the file paths in my index,php file to:
require DIR.'/../script/bootstrap/autoload.php'; $app = require_once DIR.'/../script/bootstrap/app.php';
When I run the script installer it asks me to set the script/public folder to be writable so it looks like the installer is not seeing the correct path.
In my installerRepository.php I have these lines
//this function creates all required directories for theme in public folder
public function createDir($theme)
{
if(!Storage::has('/public/themes/'. $theme))
Storage::makeDirectory('/public/themes/'. $theme);
}
//copy assets contents to themes/{theme} folder
public function copyAssets($theme)
{
$src = base_path()."/resources/views/themes/{$theme}/assets";
$dest = public_path()."/themes/{$theme}";
Which I presume will copy the contents for the themes to the public folder so the site will display correctly
is there a way to set the new path for the installer to use
thanks
Mike
Please or to participate in this conversation.