Skip to content
Discussion options

You must be logged in to vote

Hi @hoangnamitc You can do it like this:

  ->render(function (Client $client) {
      return CheckBox::make("users[$client->id]")
          ->sendTrueOrFalse()
          ->value($client->active);
  }),

Then by clicking on the button for example save in the commandBar, you will be able to get a list of clients and their status for mass updating. If you want to make it a js ajax request, then you can do it yourself by adding your own stumulus controller for example.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hoangnamitc
Comment options

Answer selected by hoangnamitc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants