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

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -