Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

value is not stored in database when datatype is bigint #27

Open
vinnyjismy opened this issue Aug 27, 2020 · 0 comments
Open

value is not stored in database when datatype is bigint #27

vinnyjismy opened this issue Aug 27, 2020 · 0 comments

Comments

@vinnyjismy
Copy link

i have created a database field for storing the checkbox value. The value say 2,3 is saved into database as expected when field type is text. But when this field type is Bigint the single value is only get saved even if i select multiple checkbox ie only saving value 2 instead of 2,3 in database
$options = [];
$groups = Group::select('id', 'name')->orderBy('name')->get();

    foreach($groups as $group) {
        $options[$group->id] = $group->name;
    }
   Checkboxes::make('groups')->options($options)->saveAsString(),
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant