/** * Show activity information for project * * @param string $key [] * @return \Illuminate\Http\Response */ public function activity($key, Category $category) { $project = $this->find($key); $active = 1; $categories = $category->get(); return view('detail_activity', compact('project', 'active', 'categories')); }