Blog posts by topic
CMS
CSS
Elixir
Git
Happy Stack
JavaScript
- Check a date with Chai
- The right way to compare arrays with Chai
- Avoid Array.prototype.push
- Chai assert error
- Split a JavaScript array into chunks
- Log nested objects in Node
- “Module not found” error with Gatsby, Netlify CMS, and PostCSS
- Compute the difference between two JavaScript arrays
- JavaScript logical operators
- Rounding errors in JSON Schema validation
- Nested optional chaining in JavaScript
- Modelling API requests with Statecharts
- Custom Decap CMS previews in Gatsby
- Generate a pseudo-random boolean
- Generate an array of random data
- Selectively disable ESLint
- Simplify imports with path mapping
- Numeric environment variables and TypeScript
- Using TypeScript with Gatsby
Laravel
- Using Eloquent subqueries to randomise grouped results
- Authorising Laravel Nova actions
- Cleaner code with Eloquent events
- Eager loading Eloquent properties
- Eloquent attributes and database defaults
- Building Happy Stack: notifications
- Building Happy Stack: naming things
- Conditional validation rules in Laravel
- How to change the URL slug of a Laravel Nova resource
- Laravel route collection binding
- Laravel’s mysteriously macroable paginators
- A nicer way of overriding Eloquent global scopes
- Understanding Laravel’s Macroable trait