app/Models/Traits/Likeable.php
/**
     * Delete likes related to the current record
     */
Delete likes related to the current record
Delete likes related to the current record
public function removeLikes()
    {
        foreach ($this->likes as $like) {
            $like->delete();
        }
    }
public function removeLikes ( ) { foreach ( $ this -> likes as $ like ) { $ like -> delete ( ) ; } }
Delete likes related to the current record
Delete likes related to the current record