I need to deploy a laravel 5 project to a client host.
The plan of my client is basic hosting: Linux + MySql without cpanel or similar (i.e. no admin panel).
I have access only via ftp and only to a folder named www.mycustomerweb.com. It means I can not create a directory at the same level of www.mycustomerweb.com folder. Only inside it (I think it is called shared hosting).
One year ago, I deployed a project made with Laravel 4 this way:
My questions are:
Did I do everything all right with laravel 4 project? May I have fallen into security issues (I mean, is the site safe)?
How do I deploy a laravel 5 project to the same site? In Laravel 5 I can not get rid of public folder as I did with Laravel 4.
Right now, I have set up a fresh installation of Laravel 5 on localhost and then I have uploaded all files to www.myclientweb.com folder via ftp:
Surely this is not the right way...
I've had a long searching through the web and Stackoverflow with no luck.
Really apprecite any help.
Thanks for reading.
edit require __DIR__.'/../bootstrap/autoload.php';
into require __DIR__.'/protected/bootstrap/autoload.php';
also edit $app = require_once __DIR__.'/../bootstrap/app.php';
into $app = require_once __DIR__.'/protected/bootstrap/app.php';