I’m trying to use Vue Multiselect in my Laravel blade file. I am putting the data in array and pass it in options as props. When option is one word(ex. “View”) everything is working. But when the option contains multiple words(ex. “View customer”) I am receiving the following error: When I print the json array, the data is shown as
Tag: multi-select
Catch array of HTML multiple select with PHP
I have two multiple selects declared as: I want to catch the values in PHP, like this But the values come like this (with print_r on the $_POST): instead of: How can this be achieved? Can anyone help? Thanks in advance. Answer Try changing the names of the fields on the form to the indices at which you want the
Laravel blade multiple select. How to select records in the pivot table?
I am using Laravel, and I have a projects table and a users table. Each project can have multiple users. I have set up a project_user pivot table. I am trying to create a multiselect box that lists all users, and has the users currently assigned to the project selected. Here is my ProjectsController function that creates the view. And