/** * Display a listing of the resource. * * @return Response */ public function show($slug) { return view('blog::Public/Category/Show', ['metaTitle' => 'slug page title', 'metaDesciption' => 'slug page description', 'category' => $this->category->getFirstBy('slug', $slug)]); }
/** * Update the specified resource in storage. * * @return Response */ public function update(UpdateRequest $request) { $category = $this->category->update($request->{config('category.categoryURL')}, $request->all()); return Redirect::route(config('core.adminURL') . '.' . config('category.categoryURL') . '.index')->with(['flash-type' => 'success', 'flash-message' => 'Successfully updated ' . $request->title . '!']); }