laravel - How to get a value in controller from get method and return it back to another view? -
the problem looks basic painful! i'm using method , getting value in controller , want same value return in view. how can that??? please help!!! function controller:
public function guest(){ if (input::get('cash on delivery')){ $get = input::get('cash on delivery'); return redirect::to('guest/guestview/'.$get); }
well, regards answer, using $_request
directly not laravel's way of doing things :(
i believe better
public function guest(request $request) { if ($request->payment_method == ('cash on delivery')) { return view('guest/guestview', ['guest'=>$request->payment_method]); } }
wiki
Comments
Post a Comment