Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialpeterkralik
4,854 PointsShould there be .htaccess file?
I've installed new laravel project on a local server and encountered problem that the simple demo routes with "Hello" view was not working, returning 404 error. After I copy/pasted .htaccess file from another project, routes started to work, but could not access public folder with css styles. How are files like routes.php or public folder connected/called? Is it the .htacces file responsible for that?
peterkralik
4,854 PointsI've tried access my css file from my layout file "main.blade.php" placed in layouts folder by link rel="stylesheet" type="text/css" href="css/style.css" and also with blade syntax " {{ asset('css/style.css') }} " just like in tutorials. CSS file is in public/css/ directory.
Muhammad Mohsen
Courses Plus Student 10,843 PointsYou can view the page source and see what you got.
Also try to post any information here so we can debug it with you :)
Muhammad Mohsen
Courses Plus Student 10,843 PointsMuhammad Mohsen
Courses Plus Student 10,843 PointsHi Peter,
What do you mean by "could not access public folder with css styles."?
How you trying to access it?