Ejemplo n.º 1
0
 /**
  * GET /admin/posts/post-slug/edit
  * Display the form for editing a post.
  *
  * @param  \NeonTsuanmi\Post  $post
  * @return \Illuminate\View\View
  */
 public function edit(Post $post)
 {
     $series = [null => 'Select...'] + Series::lists('name', 'id')->all();
     return view('admin.posts.edit', compact('post', 'series'))->withTitle('Edit post');
 }