I'm transferring laravel to the server for the first time. I have folder public_html, which the server points.
Folder vendor etc. should I move to public_html or parent folder and folder (which was created by laravel) 'public' rename to 'public_html'?
Follow the steps carefully
/public_html
i.e- /public_html/myproject
public_html/myproject/
public_html/myproject/public
public_html/myproject/public/
and move to /public_html/
index.php
file which is inside /public_html/index.php
and edit this fileFind out:
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
Replace with
require __DIR__.'/myproject/vendor/autoload.php';
$app = require_once __DIR__.'/myproject/bootstrap/app.php';