You can do this with a subdomain or addon domain. When you have your subdomain or addon domain ready, follow the author's step. The only difference is that you do everything in the directory created by your subdomain or addon domain.
Don't forget to edit these two lines of codes to match your directory structure:
Hi,
How about having more than 1 laravel app in the same shared hosting?
I'm trying to upload a second app using a subdomain for example:
test.mydomain.com points to public_html/test
But does not works for me... but if I upload a HTML file with dummy text and I type mydomain.com/test it's ok!
How can I have more than 1 laravel app (different files, different public folder, different everything) in the same shared hosting (CPANEL)
Thanks u and sorry for my poor english.
You can do this with a subdomain or addon domain. When you have your subdomain or addon domain ready, follow the author's step. The only difference is that you do everything in the directory created by your subdomain or addon domain.
Don't forget to edit these two lines of codes to match your directory structure:
require DIR.'/../vendor/autoload.php';
$app = require_once DIR.'/../bootstrap/app.php';
I strongly recommend setting this up on a local server like xampp before uploading it to your server.
Hello did you solve it if any one have more than one app
Nope, I didn't. :(