public function deleted(ViewableContract $viewable)
    {
        if ($this->removeViewsOnDelete($viewable)) {
            app(Views::class)->forViewable($viewable)->destroy();
        }
    }
public function deleted(ViewableContract $viewable)
    {
        if ($this->removeViewsOnDelete($viewable)) {
            app(Views::class)->forViewable($viewable)->destroy();
        }
    }
public function deleted ( ViewableContract $ viewable ) { if ( $ this -> removeViewsOnDelete ( $ viewable ) ) { app ( Views :: class ) -> forViewable ( $ viewable ) -> destroy ( ) ; } }
Handle the deleted event for the viewable model.

@param  \CyrildeWit\EloquentViewable\Contracts\Viewable  $model
@return void
Handle the deleted event for the viewable model .