Jose Jimenez
Jose Jimenez
Software Architect & Developer
> >

Articles about

Database

Pro Tip: Filtering Queries with Laravel Eloquent's when() and whereRaw('0 = 1') for Accurate Results

November 30th, 2023 — Utilize Laravel Eloquent's when() and whereRaw('0 = 1') to conditionally filter queries and ensure no results are returned when no conditions are met.

Boosting Database Efficiency in Laravel: Master/Slave Setup and Replicated Reporting

October 30th, 2023 — Improve performance in Laravel by configuring read/write database connections. Also, discover the benefits of a separate replicated database for reporting.

Laravel Quick Tips: Simplify Your Eloquent Queries

September 29th, 2023 — Simplify Laravel Eloquent queries with these quick tips: use query() method and when() method for conditional queries.

Simplify Your Laravel Project Installation with One Custom Command

May 30th, 2023 — Simplify your Laravel project installation with a custom command. Read on to learn how to create one that installs your app on different environments.

Data Migrations In Laravel

October 5th, 2022 — Use data migrations to create a patch that will correct production data during deployment.

Package to make Laravel 9 closure pivot tables

April 27th, 2022 — Introduction into a new package to make Laravel 9 migration pivot tables utilizing the new closure method.

Using PHP 8.1 Enums in Laravel Models

January 19th, 2022 — The release of PHP 8.1 brings proper built-in support for Enums, proper cast support was also added in a pull request for Laravel 8. In this tutorial we will go over how to add Enums in Laravel Models.