Workflow
Relationship
Id
Name
Kitchen
1
Arkansas Possum Pie
RJ
2
Albacore Tuna Melt
RJ
3
борщ
BA
4
Bacalhau com natas
MG
5
Baba Ghanoush
SP
6
Bacon Cheeseburger
RJ
7
Baked potato
RJ
8
Baklava
MG
9
Bangers and mash
RJ
10
Black Pudding
MG
11
Blue cheese dressing
BA
12
Boulliabaise
BA
13
Bread
MG
14
Breaded shrimp
BA
15
Breakfast burrito
SP
16
Brisket
MG
17
Brunswick stew
RJ
18
Bruschetta
MG
19
Buffalo Wings
BA
20
Buffalo burger
BA
21
Buffalo wing
SP
22
Calamari
BA
23
Carne pizzaiola
SP
24
Caviar
RJ
25
Ceviche
RJ
26
Cheesecake
SP
27
Chicken Biryani
SP
28
Chicken Tikka Masala
BA
29
Chicken and waffles
BA
30
Chicken bog
RJ
31
Chicken fingers
RJ
32
Chile Relleno
RJ
33
Chili con carne
SP
34
Chili dog
BA
35
Chimichanga
SP
36
Chinese food
BA
37
Chips and dip
SP
38
Choco pie
BA
39
Chocolate Brownie
BA
40
Chocolate Chip Cookie
MG
41
Chocolate cheesecake
SP
42
Chowder
MG
43
Churrasco
SP
44
Cinnamon Roll
BA
45
Coleslaw
SP
46
Coq Au Vin
SP
47
Cordon bleu
RJ
48
Currywurst
MG
49
Eggo
SP
50
Eggs Benedict
SP
51
Eggs Neptune
SP
52
Empanada
SP
53
Energy bar
RJ
54
Escargot
RJ
55
Fajitas
MG
56
Falafel
SP
57
Fattoush Salad
MG
58
Fish Tacos
SP
59
Fish and Chips!
RJ
60
Flan
SP
61
Fortune cookie
MG
62
Francesinha
MG
63
French Onion Soup
SP
64
Fries
SP
65
Frito Pie
BA
66
Fry sauce
MG
67
Funnel Cake
RJ
68
Garden salad
MG
69
Garlic bread
MG
70
Gazpacho
SP
71
Goulash
BA
72
Greek salad
SP
73
Grilled Snake
RJ
74
γύρος
RJ
75
Gumbo
SP
76
Gyoza
RJ
77
Huevos Rancheros
RJ
78
Hummus
BA
79
Ice Cream
SP
80
Key Lime Pie
MG
81
Kimchi
SP
82
Kobe Beef
MG
83
Kung Pao Chicken
SP
84
Laksa
SP
85
Lasagna
SP
86
Liver and onions
SP
87
Lobster Newberg
MG
88
Lobster roll
BA
89
London broil
RJ
90
Lorna Doone
SP
91
Low Country Boil
MG
92
Macaroni and Cheese
RJ
93
Macaroni and cheese
SP
94
Macaroni salad
RJ
95
Maine Lobster
SP
96
Mango and Sticky Rice
SP
97
Maple Bacon Doughnut
BA
98
Maple bacon donut
SP
99
Maraca pie
SP
100
Margherita Pizza
MG
101
Mashed potato
SP
102
Mashed pumpkin
SP
103
Massaman Curry
BA
104
Matzo Ball Soup
MG
105
Meat Feast Pizza
MG
106
Meatcake
SP
107
Meatloaf
MG
108
Milkshake
SP
109
Mini pizzas
RJ
110
Mozzarella sticks
RJ
111
Muffuletta
MG
112
Mulligan stew
SP
113
Naan
SP
114
New York-Style Pizza
BA
115
Onion Rings
BA
116
Oreo
MG
117
Osso Buco
RJ
118
Paella
MG
119
Pancakes
BA
120
Parma Ham
MG
121
Pasta salad
BA
122
Pastel de Nata
RJ
123
Pastrami
MG
124
Pastrami on Rye
BA
125
Patty
SP
126
Peixada da chef Nábia
SP
127
Peanut butter
BA
128
Pemmican
SP
129
Pepperoni
BA
130
Pepperoni Pizza
RJ
131
Phaal
BA
132
Philly Cheese Steak
BA
133
Polenta
RJ
134
Potato Wedges
RJ
135
Potato salad
SP
136
Potato skins
SP
137
Potato wedges
RJ
138
Poutine
SP
139
Quesadilla
MG
140
Ratatouille
SP
141
Ribs
MG
142
Risotto
RJ
143
Roasted Bone Marrow
MG
144
Roasted Chickpeas
MG
145
Samosa
SP
146
Schnitzel
SP
147
Scrapple
BA
148
Sloppy joe
SP
149
Souvlaki
RJ
150
Spaghetti Bolognese
SP
151
Spaghetti and Meatballs
MG
152
Spanish rice
MG
153
Spring Rolls
RJ
154
Squab
BA
155
St. Paul Sandwich
RJ
156
Steak Tartare
MG
157
Steak sandwich
SP
158
Steak sauce
RJ
159
Steamed clams
MG
160
Stroganoff
MG
161
Stuffed ham
RJ
162
Stuffed peppers
BA
163
Stuffed zucchini
MG
164
Succotash
BA
165
Suckling Pig
MG
166
Supreme pizza
RJ
167
Surf and turf
SP
168
Sushi
MG
169
Sueli's Sushi Boat
RJ
170
Sweet Potato Fries
BA
171
Sweetbreads
SP
172
Swiss steak
RJ
173
Tagine
MG
174
Tamales
BA
175
Tetrazzini
RJ
176
Texas Toast
SP
177
Thousand Island dressing
MG
178
Tin Roof Ice Cream
BA
179
Toaster Strudel
RJ
180
Tomato compote
BA
181
Tres Leches Cake
MG
182
Tuna Pizza
RJ
183
Tuna casserole
MG
184
Turducken
RJ
185
Turkish Delight
RJ
186
Vitão's Chocolate pie
RJ
187
Veggie Pizza
BA
188
Venison
MG
189
Vichyssoise
BA
190
Waffle
MG
191
Wasabi Peas
RJ
192
White chocolate cookie
MG
193
Yeung Chow fried rice
SP
Disclaimer: Table data is randomly generated for illustrative purposes only. The information here is not a reflection of the actual market and does not constitute business, financial, or medical advice.
open in GitHub
<?php
 
use App\Models\Dish;
use Illuminate\Database\Eloquent\Builder;
use PowerComponents\LivewirePowerGrid\Column;
use PowerComponents\LivewirePowerGrid\PowerGrid;
use PowerComponents\LivewirePowerGrid\PowerGridComponent;
use PowerComponents\LivewirePowerGrid\PowerGridFields;
 
final class RelationshipTable extends PowerGridComponent
{
public function datasource(): ?Builder
{
return Dish::query()->with('Kitchen');
}
 
public function fields(): PowerGridFields
{
return PowerGrid::fields()
->add('id')
->add('name')
->add('kitchen_description', fn (Dish $dish) => $dish->kitchen->description);
}
 
public function columns(): array
{
return [
Column::make('Id', 'id'),
 
Column::make('Name', 'name')
->sortable()
->searchable(),
 
Column::make('Kitchen', 'kitchen_description'),
];
}
}

Here you can find all relevant packages installed on this demo.

Name
Version
Description
laravel/framework
v10
The Laravel Framework.
openspout/openspout
v4.23.0
PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
power-components/livewire-powergrid
5.x-dev
PowerGrid generates Advanced Datatables using Laravel Livewire.