public function getAll() { $resources = Resource::with('category')->with('user')->with('city')->paginate(5); return View::make('backend.pages.resource-all')->withResources($resources); }