seankegel.comAccessing Databases in PhpStormDid you know PhpStorm can access your databases, and it actually gives you a fantastic UI for managing? I was a long-time TablePlus user, which is a great tool, but lately, I've been finding myself using PhpStorm's built-in tools more and more. It le...Nov 16, 2024·4 min read
seankegel.comLaravel Factories: Tips for Handling Dependent DataSomething I recently came across while working on a Laravel app was an unoptimized factory. I’ve seen this many times and have even been guilty of it. Let’s say we have three models, a User, a Team, and a Project. A team can have a team owner (teams....Sep 22, 2024·3 min read
seankegel.comLaravel: Casting Eloquent JSON FieldsI have a short post today to cover something I recently used in a project. I had a table using a JSON column and though they are extremely flexible, I like to know what data exists in the column. To accomplish this, I use a simple data transfer objec...Jul 28, 2024·4 min read
seankegel.comNeovim for PHP and LaravelIf you’ve ever wanted to use Neovim for PHP and Laravel development, this guide should help get you started. If you use VSCode, then check out this post. In this post, I will be using Neovim with LazyVim. LazyVim is a fantastic Neovim setup with many...Jul 13, 2024·11 min read
seankegel.comElevate Your Laravel Eloquent Queries with Tappable ScopesIn this article, I want to go over how to use tappable scopes in Laravel. I’ve used similar patterns in Java Spring Boot, but never really considered using it in Laravel until I read Unorthodox Eloquent by Muhammed Sari which is an excellent guide to...Apr 20, 2024·4 min read