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 trial

PHP Laravel 4 Basics Getting Started with Laravel Laravel Folder Structure

Peter Kralik
Peter Kralik
4,853 Points

Should 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?

Hi Peter,

What do you mean by "could not access public folder with css styles."?

How you trying to access it?

Peter Kralik
Peter Kralik
4,853 Points

I'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.

You can view the page source and see what you got.

Also try to post any information here so we can debug it with you :)