public function detach($keys): bool
    {
        if ($keys instanceof Arrayable) {
            $keys = $keys->toArray();
        }

        foreach ($keys as $key) {
            $this->remove($key);
        }

        return true;
    }
public function detach($keys): bool
    {
        if ($keys instanceof Arrayable) {
            $keys = $keys->toArray();
        }

        foreach ($keys as $key) {
            $this->remove($key);
        }

        return true;
    }
public function detach ( $ keys ) : bool { if ( $ keys instanceof Arrayable ) { $ keys = $ keys -> toArray ( ) ; } foreach ( $ keys as $ key ) { $ this -> remove ( $ key ) ; } return true ; }
Remove multiple key to collection.

@param  \Illuminate\Contracts\Support\Arrayable|array  $keys

@return bool
Remove multiple key to collection .