/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $contentMenu = ['content' => 'active open', 'category' => 'active']; $contentcats = Content_category::orderBy('created_at', 'desc')->get(); return view('backend.tools.contentcat.home', compact('contentcats', 'contentMenu')); }