I'm trying to retrieve single column from my table grades. For that I have used following code in my controller:
public function verify($id,$sid)
{
$grade=Grade::all('annual')->whereLoose('id',$id);
return $grade;
}
Where, annual is column name. But it is returning empty set of array []. Can anyone help me?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Y0WW5l
via IFTTT
Aucun commentaire:
Enregistrer un commentaire