/** * Display a listing of the resource. * * @return Response */ public function index() { $agents = Agent::all(); return !$agents ? Response::json("Error", 400) : $agents; }