public function store(PostCreateRequest $request)
    {
        $post = Post::create($request->postFillData());
        $post->syncTags($request->get('tags', []));

        Session::put('_new-post', trans('canvas::messages.create_success', ['entity' => 'post']));

        return redirect()->route('canvas.admin.post.edit', $post->id);
    }
public function store(PostCreateRequest $request)
    {
        $post = Post::create($request->postFillData());
        $post->syncTags($request->get('tags', []));

        Session::put('_new-post', trans('canvas::messages.create_success', ['entity' => 'post']));

        return redirect()->route('canvas.admin.post.edit', $post->id);
    }
public function store ( PostCreateRequest $ request ) { $ post = Post :: create ( $ request -> postFillData ( ) ) ; $ post -> syncTags ( $ request -> get ( 'tags' , [ ] ) ) ; Session :: put ( '_new-post' , trans ( 'canvas::messages.create_success' , [ 'entity' => 'post' ] ) ) ; return redirect ( ) -> route ( 'canvas.admin.post.edit' , $ post -> id ) ; }
Store a newly created Post.

@param PostCreateRequest $request

@return \Illuminate\Http\RedirectResponse
Store a newly created Post .