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
Łukasz Czuliński
8,646 Points[SOLVED] Laravel: route [/create] not defined.
I have been trying to figure out what I'm doing wrong here for quite I have been trying to figure out what I'm doing wrong here for quite a while. I keep getting this error message when I go to localhost:8000/library/create:
ErrorException (E_UNKNOWN)
Route [/create] not defined. (View: C:\wamp\www\cite\app\views\library\create.blade.php)
In my LibraryController I have my create method linking to views/library/create.blade.php:
class LibraryController extends BaseController
{
public function create()
{
return View::make('library.create');
}
}
With my routing declared as:
Route::resource('library', 'LibraryController');
php artisan routes is correctly showing library/create also. Where have I gone wrong?
Łukasz Czuliński
8,646 PointsŁukasz Czuliński
8,646 PointsSilly error on my part. Tried calling for '/create' in one of my views instead of 'library.create'.