protected function saving(Eloquent $content, array $input)
    {
        $content->setAttribute('title', $input['title']);
        $content->setAttribute('content', $input['content']);
        $content->setAttribute('slug', $input['slug']);
        $content->setAttribute('format', $input['format']);
        $content->setAttribute('status', $input['status']);

        $this->updatePublishedAt($content) && $content->setAttribute('published_at', Carbon::now());

        $content->save();
    }
protected function saving(Eloquent $content, array $input)
    {
        $content->setAttribute('title', $input['title']);
        $content->setAttribute('content', $input['content']);
        $content->setAttribute('slug', $input['slug']);
        $content->setAttribute('format', $input['format']);
        $content->setAttribute('status', $input['status']);

        $this->updatePublishedAt($content) && $content->setAttribute('published_at', Carbon::now());

        $content->save();
    }
protected function saving ( Eloquent $ content , array $ input ) { $ content -> setAttribute ( 'title' , $ input [ 'title' ] ) ; $ content -> setAttribute ( 'content' , $ input [ 'content' ] ) ; $ content -> setAttribute ( 'slug' , $ input [ 'slug' ] ) ; $ content -> setAttribute ( 'format' , $ input [ 'format' ] ) ; $ content -> setAttribute ( 'status' , $ input [ 'status' ] ) ; $ this -> updatePublishedAt ( $ content ) && $ content -> setAttribute ( 'published_at' , Carbon :: now ( ) ) ; $ content -> save ( ) ; }
Saving content.

@param  \Orchestra\Story\Model\Content  $content
@param  array  $input

@return void
Saving content .