Vishaal
121
1
Laravel

Multi selection bootstrap insert in database

Posted 3 months ago by Vishaal

Hello,

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.