lundi 1 mai 2017

Use of undefined constant value - assumed 'value'

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;
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire