6 months ago

Multi selection bootstrap insert in database

Posted 6 months ago by Vishaal


I'm trying to create multi selection bootstrap output to save in database but i'm getting array in mine controller like ["6","7"] How i can save this.

There is 2 selection that means 2 row must created.

Query what i was thinking:

$table = Pool_user::updateOrInsert(['pool_id' => [$string1], $user_id = $request['id']]);

Can anyone help me with this to get it solve?

Please sign in or create an account to participate in this conversation.