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 trialPada S
2,493 PointsI don't have routes.php file. What should I do?
A lot of my project folder content differ from the one the instructor is showing. The structure is different and I can't find routes.php file
7 Answers
Muhammad Mohsen
Courses Plus Student 10,843 PointsSara Al-Zahrani , My advice, Stick with 4.2.11 (Latest stable version) for your live projects, Since Laravel 5 isn't officially released yet (comming in 5th of this month).
Ken Alger
Treehouse TeacherSara;
The videos on Treehouse are for Laravel 4, it sounds like you have downloaded and installed Laravel 5. If you want to follow along with the videos you need to get version 4.
Perhaps Hampton Paulk could add a teacher's note about the Dev version and some of the updates in Laravel 5 that are dramatically different from 4.x and would cause some of your issues.
Ken
Abhishek Bhardwaj
3,316 PointsIs there is any c++ or c language classes in treehouse.?
Pada S
2,493 PointsHi Ken,
I searched for it in the app folder but I didn't find it. My app folder structure is like this:
app Console
Http
Providers ( in this folder there is a file called RoutrServiceProvider.php)
User.php
I searched inside the sub folders but didn't find it also. The structure is different. Does that mean there is a problem with my project?
Thank you
Pada S
2,493 Pointsapp: Console Http Providers User.php
This is my app folder.. It was missed up.. Sorry about that
Ken Alger
Treehouse TeacherSara;
There should be four folders at the root level of a basic Laravel Homestead installation, if they are not there then there is probably something with your installation.
The folders are: app, bootstrap, public, vendor
Let us know if things are different in your environment and perhaps we can sort it out further.
Ken
Pada S
2,493 PointsYes these folders are there but the whole structure is different and inside each folder the structure is also different. But I think the solution is here:
"routes.php file is now out by default. Check the last commit to see how to enable it: https://github.com/laravel/laravel/commit/bc593c17aafa8e568e3f999893472698daf2bf37
We should all give a try on annotations. Laracast is providing a first video about the concept: https://laracasts.com/series/whats-new-in-laravel-5
If you wonder where to put model bindings it's should go to app/Providers/RouteServiceProvider.php within the before method (check comments)
If using annotations don't forget to update/add controllers you want to be scannable to protected $scan array within app/Providers/RouteServiceProvider.php too. Then run the php artisan route:scan to scan routes and php artisan route:list to check the magic."
I got this answer from this link http://laravel.io/forum/10-15-2014-cant-find-routesphp-in-laravel-5?page=1 it's the last one.
I'm trying to follow with this solution and I'll post any instruction that helped me.
thomascawthorn
22,986 PointsI am very excited for Laravel 5
Ken Alger
Treehouse TeacherKen Alger
Treehouse TeacherSara;
routes.php
should be in theapp
folder. What other differences does your environment have from the course?Ken