public function C_GetAllClient() { $movie = new Client(); $data = $movie->getAllClient(); if (isset($data[0])) { return response($data, 200); } else { return response()->json(['status' => 'Client not found'], 404); } }