Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 1 year ago.
0

I'd try creating a "laravel" folder under www.example.com (ie not inside the public directory), and put everything but the public directory there. Then place index.php at public/api/index.php and change the paths in that file, from "../bootstrap/" to "../../laravel/bootstrap/". That way laravel would only trigger to /api/ calls, and the core is outside of the www-root.

EDIT: Probably need to change the public path in bootstrap/paths.php too.

Last updated 1 year ago.
0

Awesome, I'll give this a try tonight. Thanks.

Last updated 1 year ago.
0

Sign in to participate in this thread!

JetBrains

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.