Support the ongoing development of Laravel.io →
Requests Views Blade
Last updated 2 years ago.
0

If the folder is inside your "public" folder - you don't need a route, it will be accessible directly.

0

Yes, but how do I create a route for this? To open the folder that is in the public / example, for example

Thank U

0

I don't quite understand your question, as I said - to access a folder that is in your public folder, you don't need to create a route. When someone access your Laravel powered site, it checks the URL against what is in the public folder first, if it finds a match it serves it, if it doesn't - it then goes through the routes.php file to try and find a match.

If your folder is called example, it should be accessible at www.yourdomain.com/example without the need for a route (you may need to tweak .htaccess to give access to a directory listing).

Last updated 9 years ago.
0

Thanks, I am understanding your explanation. I am a new user in framework Laravel, and sometimes my questions is a little weird :)

Thanks,

0

Sign in to participate in this thread!

Eventy

Your banner here too?

edeweb edeweb Joined 22 Oct 2014

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.

© 2024 Laravel.io - All rights reserved.