/** * Display a listing of the resource. * * @return Response */ public function index(FileEloquentRepository $file_repo, FolderEloquentRepository $folder_repo) { return \Response::json(['status' => 1, 'feed' => $folder_repo->getList()]); }