Laravel Community Tools by Tighten

Nuruzzaman Milon

Joined: 12 years ago
Total tricks: 2
Last trick: 11 years ago

Submitted tricks

By this line adding to the app/routes.php file, you can apply 'csrf' filter to all routes
milon 11 years ago 8511
You can chain eager loading to avoid N+1 problem. Suppose you have 3 tables. customer[id, email], pos[id, serial_number] and restaurant[id, name, customer_id, pos_id] so restaurant table can act like a pivot table and it also have some value attribute. So now we can call customer from pos table via chaining eager loading.
milon 11 years ago 20299