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

Filament 4

This project illustrates the creation of checkbox-based forms and their integration with many-to-many database relationships for data persistence.

01JJ4G0KQ4Z1W993CPKFQKGCZ7

Get the Source Code:

How it works

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

app/Filament/Resources/Groups/Tables/GroupsTable.php:

use Filament\Tables\Table;
use Filament\Tables\Columns\TextColumn;
 
public static function configure(Table $table): Table
{
return $table
->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.

The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.
Get the Source Code: All 113 Premium Examples for $99