app/Models/Traits/Viewable.php
/**
     * Delete views related to the current record
     */
Delete views related to the current record
Delete views related to the current record
public function removeViews()
    {
        foreach ($this->views as $view) {
            $view->delete();
        }
    }
public function removeViews ( ) { foreach ( $ this -> views as $ view ) { $ view -> delete ( ) ; } }
Delete views related to the current record
Delete views related to the current record