You pass an array of arguments so try this instead:
return Redirect::route('wesell-congratulations', [$this->property->id]);
your function maybe should named:
public function getWeSellConGrats($id){}
Hi
thomastkim I tried that and it didn't work. surpass I don't think the name of the function is prevalent.
Any other ideas?
Okay, I have solved my problem, but I am still bemused as to why my previous example did not work so if anyone could shed some light I would be most appreciative.
This is what I did
#Route
Route::get('/wesell-congratulations', ['as' => 'wesell-congratulations', 'uses' => 'WeSellPagesController@WeSellConGrats']);
#PropertyController
return Redirect::route('wesell-congratulations', ['id' => $this->property->id]);
#WeSellPagesController
public function WeSellConGrats()
{
$id = Input::get('id');
return View::make('wesell.congratulations', ['property_id' => $id]);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community