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 Blade & Forms Form Builder

Shane McC
Shane McC
3,005 Points

[Solved] Form Error Message

Hi

I'm getting an error message when I create the form on my todos.create page. The error message is below. My routes.php file is below as well. What am I doing wrong?

Route [todos.create] not defined. (View: C:\wamp\www\laravel\teamTreeHouse\app\views\todos\create.blade.php)

Below is my routes.php file Route::get('/', 'ToDoListController@index'); Route::get('/todos','ToDoListController@index'); Route::get('todos/{id}','ToDoListController@show'); Route::get('/create', 'ToDoListController@create');

I'm new to this course as well but I think this may be your problem:

Route::get('/create', 'ToDoListController@create');

Change to this:

Route::get('/todos/create', 'ToDoListController@create');
Shane McC
Shane McC
3,005 Points

Thanks Robert, Worked perfect.

pietro capriata
pietro capriata
18,066 Points

yep, but in the video doesn't appeart this input... why?

1 Answer

pietro capriata
pietro capriata
18,066 Points

No excuseme.. you need to change routes.php with this code

Route::resource('todos', 'TodoListController)