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 Continuing CRUD Form Model Binding

Different in Laravel 5

Hi there! I can't make this step second day! In new Laravel there is no more 'Model' Binding, and "it's Bad" (c) Mr Mackey The same code, in case of update name of Item, gives an error: "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry" May be someone have had the same issue; or if you more experienced just point me an article with alternative method that will work in Laravel 5.

I find an issue: It was me! I confused а variable name in TodoListController.php

It was like I assigns the same value. That is why this error appeared

1 Answer

This course seems to be outdated, maybe Treehouse want to update this to Laravel 5 :)