What do you know about query builder in Laravel?

Technology CommunityCategory: LaravelWhat do you know about query builder in Laravel?
VietMX Staff asked 3 years ago

Laravel’s database query builder provides a convenient, fluent interface to creating and running database queries. It can be used to perform most database operations in your application and works on all supported database systems.

The Laravel query builder uses PDO parameter binding to protect your application against SQL injection attacks. There is no need to clean strings being passed as bindings.

Some QB features:

  • Chunking
  • Aggregates
  • Selects
  • Raw Expressions
  • Joins
  • Unions
  • Where
  • Ordering, Grouping, Limit, & Offset