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