/** * Execute the command. * * @return void */ public function handle() { $comment = Comment::find($this->id); $comment->post_id = $this->post_id; $comment->parent_id = $this->parent_id; $comment->author = $this->author; $comment->email = $this->email; $comment->content = $this->content; $comment->save(); }
/** * Execute the command. * * @return void */ public function handle() { Comment::create(['post_id' => $this->post_id, 'parent_id' => $this->parent_id, 'author' => $this->author, 'email' => $this->email, 'content' => $this->content]); }
/** * Execute the command. * * @return void */ public function handle() { Comment::find($this->id)->delete(); }