Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings checkbox problem #159

Closed
Hyperizon opened this issue Oct 7, 2019 · 2 comments
Closed

Settings checkbox problem #159

Hyperizon opened this issue Oct 7, 2019 · 2 comments

Comments

@Hyperizon
Copy link

Hi Nasir,

Checkbox is not saved in settings.

how to fix ?

checkbox.blade.php =
image

settings_fields =
image

@nasirkhan
Copy link
Owner

Let me check the issue and will try to post to fix within this week.

If you already created the solution, please submit a PR.

@nasirkhan
Copy link
Owner

Fixed the issue.

here is an example of checklist,

[
    'type'  => 'checkbox', // input fields type
    'data'  => 'text', // data type, string, int, boolean
    'name'  => 'show_copyright', // unique name for field
    'label' => 'Show Copyright', // you know what label it is
    'rules' => '', // validation rule of laravel
    'class' => '', // any class for input
    'value' => '1', // default value if you want
],

you can check the commit details at bcb20a1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants