Use of undefined constant value - assumed 'value' how i access?
public function idcount($id)
{
$stats = DB::table('questions')
->select( DB::raw("COUNT('id') as value"))
->where('user_id',$id)
->groupBy('user_id')
->get(
);
return $stats.value;
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2pyTdBM
via IFTTT
Aucun commentaire:
Enregistrer un commentaire