Exemplo n.º 1
0
 public function getFeedback(Request $req)
 {
     if ($req->ajax()) {
         $total = data_feedback::notif()->first();
         $res = $total->total > 9 ? '9+' : $total->total;
         return json_encode(['total' => $res]);
     }
 }