public function deletePictures($ids)
    {
        $pictures = $this->pictures()->whereIn('id', $ids)->get();

        $pictures->each(function ($item) {
            $item->delete();
        });
    }
public function deletePictures($ids)
    {
        $pictures = $this->pictures()->whereIn('id', $ids)->get();

        $pictures->each(function ($item) {
            $item->delete();
        });
    }
public function deletePictures ( $ ids ) { $ pictures = $ this -> pictures ( ) -> whereIn ( 'id' , $ ids ) -> get ( ) ; $ pictures -> each ( function ( $ item ) { $ item -> delete ( ) ; } ) ; }
Deletes the given pictures from the model.

@param  array $ids

@return void
Deletes the given pictures from the model .