/** * Display a listing of the resource. * * @return Response */ public function index() { return NavigationItem::all()->toJson(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $NavigationItems = NavigationItem::all(); return view('cms.navigation.navigation', compact('NavigationItems')); }