Children Meals: Multiple Many-to-Many Checkbox Lists in One Form

Filament 3
Also available in Filament 4/5 version

Group your Many-to-many relationships in a clear visual way using Filament Fieldset.

FilamentExamples ThumbBase - 2025-01-21T151213.346

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Children Meals: Multiple Many-to-Many Checkbox Lists in One Form
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 169 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 169 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

We have a Filament resource to show a list of kindergarten groups.

app/Filament/Resources/GroupResource.php:

use Filament\Tables;
use Filament\Tables\Table;
 
public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
])
// ...
}

We added an action to the table to assign meals (breakfast, lunch, or dinner) to kids in a group.

When the action is triggered, a modal slides out with a list of kids and meals for each kid. A form is generated manually for each kid and meal.

Next, we will create:

  • Checkbox List
  • Many to Many relationship saving script
The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.