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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -