예제 #1
0
 /**
  * Execute the job.
  */
 public function handle()
 {
     $this->topic->body_original = trim($this->topic->body);
     $this->topic->body = app('markdown')->text($this->topic->body_original);
     $this->topic->excerpt = $this->excerpt($this->topic->body_original);
     $this->topic->save();
     return $this->topic;
 }
예제 #2
0
 /**
  * Execute the job.
  */
 public function handle()
 {
     $this->topic->title = Purifier::clean($this->topic->title, 'title');
     $this->topic->body_original = Purifier::clean(trim($this->topic->body), 'body');
     $this->topic->body = app('markdown')->text($this->topic->body_original);
     $this->topic->excerpt = $this->excerpt($this->topic->body_original);
     $this->topic->save();
     return $this->topic;
 }