lundi 23 mai 2016

Retreiving variable with message

I am trying to retreive variable to display along with message this way. but, i came to know this actually is not a way. $count is the variable to be displayed along with message.

   public function now(Request $request)
      {
            $name=$request->get('name');
            $contact=$request->get('contact');
            $level=$request->get('level');

            $count=$level*3.5;
            return redirect('/lost')
                    ->with ('message','You have increased your level to $count.');
        }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1WMfgjG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire