Error | Laravel's Lumen on x10hosting

Status
Not open for further replies.

wooprapp

Member
Messages
110
Reaction score
7
Points
18
Hi everyone,
so I'm new to Laravel and Lumen. From what I've learned is that Lumen is Laravel's lightweight version which is a lot faster (and great for designing an API). So, I've been studying Lumen trying to figure out how it works. I set up my x10 PHP Version 7.2 (and its plugins/addons), I've also moved my "/public" into my root "/". The root "/" works but no other routes work (everything works locally, but not on x10)... I've posted on Laravel's Community forums and no one's responding.

Here's the link: https://laracasts.com/discuss/channels/lumen/lumen-works-on-shared-web-host-but-isnt-working

Can anyone please help me resolve this issue?

Thanks!

(Attached is two screenshots trying to show the issue):
ZnrOcZo.png

c2W4INx.png
 

wooprapp

Member
Messages
110
Reaction score
7
Points
18
Update:
Apparently I got it working now but it's forcing/showing my shared web-hosts path, I don't like that. It's a huge security risk for me. It's like:

https://api.mysite.com/home/myusername/public_html/another_folder/NewBlog/NewBlog

When I go to the root "/" it takes me to "/NewBlog" then once I replace the "NewBlog" it set with my route "status" or "test" it'll display their results on the screen.

Any advice?
Thanks!
 
Status
Not open for further replies.
Top