php - Laravel routes don't seem to go to correct place -



php - Laravel routes don't seem to go to correct place -

i linking localhost/offers/create doesn't seem find right template, instead sent single.blade.php when should edit.blade.php

http://codepad.org/vpyj1bub link code.

route::get('offers/{id}', function($id) { $offer = offer::find($id); homecoming view::make('offers.single') ->with('offer', $offer); });

the above route seems 1 getting hit.

my problem revolved around missing

route::pattern('id', '[0-9]+');

which kept create showing under id

php laravel laravel-4 routes

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -