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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire