src/Repositories/Repository.php
public function delete($id)
    {
        $resource = $this->model->find($id);
        
        if (! $resource) {
            return '';
        }
        
        return $resource->delete();
    }
public function delete($id)
    {
        $resource = $this->model->find($id);
        
        if (! $resource) {
            return '';
        }
        
        return $resource->delete();
    }
public function delete ( $ id ) { $ resource = $ this -> model -> find ( $ id ) ; if ( ! $ resource ) { return '' ; } return $ resource -> delete ( ) ; }
Delete a resource by id

@param $id int
@return boolean
Delete a resource by id