samedi 2 juin 2018

Laravel redirect back with variables

Trying to redirect to the previous page with variables

$get_product = Product::where('name',$request->name)->first();
return redirect()->back()->with('get_product',$get_product);

but i have this error when i print variable



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2sxtUju
via IFTTT

Aucun commentaire:

Enregistrer un commentaire