dimanche 24 janvier 2016

i need to store the id in a selected row in laravel

$typ= category3::where('type_name', '=', $request->name)->where('category','=',$request->category)->get();

Above is the code in file to select the row from table category3.

Now what should i do to get the id of that selected row stored to a variable called $type_id?



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

Aucun commentaire:

Enregistrer un commentaire