Please format your code correctly by wrapping it within triple backticks
```
// your code
```
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello guy i tried to insert multiple values into one column in the table i use a checkbox i use enums with foreach to get data of an enum called days also I use simple checkbox but when I try to do that and I want to save data I have this problem of App\Enums\days::from(): Argument #1 ($value) must be of type int, string given ====> This is column on db $table->string('days'); ===> controller function $validatedData = $request->validated(); $days = implode(",", $validatedData['days']); $userId = Auth::id(); $data = array_merge($validatedData, [ 'createdBy' => $userId, 'days' => $days, ]); supplier::create($data); also i use name="days[]" on view
Please or to participate in this conversation.