deleteTweetPublishment() public method

Delete tweet
public deleteTweetPublishment ( object $answer ) : void | Illuminate\View\View
$answer object
return void | Illuminate\View\View
コード例 #1
0
 /**
  * Delete reaction
  *
  * @param  integer $id
  * @return view
  */
 public function deleteReaction($id)
 {
     $reaction = $this->reaction->find($id);
     $reaction->delete();
     if ($reaction->fb_post_id != '') {
         $this->facebookContent->deleteFbPost($reaction);
     }
     if ($reaction->tweet_id != '') {
         $this->twitterContent->deleteTweetPublishment($reaction);
     }
     return back();
 }