PHPackages                             zachgilbert/vue-multiselectable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zachgilbert/vue-multiselectable

ActiveProject[Utility &amp; Helpers](/categories/utility)

zachgilbert/vue-multiselectable
===============================

PHP support for vue-multiselect

v1.0.0(4y ago)02MITPHP

Since Jul 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zachgilbert97/vue-multiselectable)[ Packagist](https://packagist.org/packages/zachgilbert/vue-multiselectable)[ RSS](/packages/zachgilbert-vue-multiselectable/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Vue Multiselect
===============

[](#vue-multiselect)

This package provides methods to conveniently convert PHP classes to array data prepared for use on the frontend Vue component, [Vue Multiselect](vue-multiselect.js.org) (2.4.1).

> Please note this utility package is independent of and not endorsed by .

Table of Contents:
------------------

[](#table-of-contents)

1. [Installation](#installation)
    - 1.1. [Laravel](#installation.laravel)
2. [The `Multiselectable` Trait](#the-multiselectable-trait)
    - 2.1. [`toMultiselectOption()`](#the-multiselectable-trait.to-multiselect-option)
3. [Eloquent Collection Methods](#eloquent-collection-methods)
    - 3.1. [`multiselect()`](#eloquent-collection-methods.multiselect)
    - 3.2. [`disbaleOptionsBy()`](#eloquent-collection-methods.disable-options-by)
4. [Eloquent Query Builder Methods](#eloquent-query-builder-methods)
    - 4.1. [`multiselect()`](#eloquent-query-builder-methods.multiselect)

\# 1. Installation
----------------------------------------------------------

[](#-1-installation)

Install using Composer:

```
$ composer require zachgilbert/vue-multiselect

```

Apply the trait `Multiselectable` to any PHP object (such as an Eloquent model, in Laravel) that you wish to convert to an option for use on the `` Vue component:

```
