/eloquent-examples

A series of examples on how to improve Eloquent queries

Primary LanguagePHP

Laravel Logo

About

A series of examples on how to improve Eloquent queries in a standard Laravel application.

Installation

Run php artisan migrate --seed to create the database and seed it with some data.

Then create an account on the application and login to see the examples.

Learn more

Want to learn these in a more structured way? Check out my Professional Laravel Development course.

Where to put Business Logic?

  • Repository
  • Query Builder
  • Service