Monday, 21 Sep 2020
Embed responsive YouTube videos in laravel with a single line of code. Read more →
Monday, 24 Aug 2020
Learn how to embed services using their public URL using the laravel-embed package. Read more →
Thursday, 28 Nov 2019
Use the prepareForValidation method to cast request parameters to Enums. Read more →
Saturday, 23 Nov 2019
Get push notifications for your laravel forge deployments using Anvil. Read more →
Thursday, 21 Nov 2019
Anvil is a deployment dashboard. Its job is to bring all deployment information for any number of sites into one place and present it in such a way that it's super simple to get an idea of the sites' health at a glance. Read more →
Saturday, 18 May 2019
It's now easier to render mail notifications in the browser because the MailMessage class now implements the Renderable interface. Read more →
Friday, 01 Feb 2019
When using form request classes, it can be really handy to be able to manipulate the request data before running any of the validation rules. Read more →
Tuesday, 07 Aug 2018
Adding indexes to your database tables is a great way to get some extra performance out of your application, especially if you have a large amount of data in your tables. Read more →
Tuesday, 12 Jun 2018
A good deploy script can save you time and speed up you application, and it only takes a few minutes to set one up. Read more →
Monday, 04 Jun 2018
Often you'll want to limit the number of characters a user can put into an input field such as a textarea. When you do this it's a good idea to show the number of characters the user has left available in real time to avoid frustration. This is a common practice and something that's really easy to achieve in Vue.js. Read more →
Tuesday, 29 May 2018
Learn how to mask IDs in URLs for better security and a more professional looking application. We do this by using the hashids library and some Laravel knowhow. Read more →
Saturday, 26 May 2018
The latest version of Google Chrome (version 66) includes autoplay video changes that stops Chrome from automatically playing videos in some scenarios. Apparently Chrome will learn which sites you tend to play videos on and will allow autoplaying of videos for those particular sites. That sounds like a great idea to me - it's incredibly annoying when you land on a page only to be blasted with sound from an unwanted autoplaying video. Read more →
Thursday, 24 May 2018
I recently visited a site with a horizontally scrolling sub-menu which I really liked. Because of the stigma of horizontal scrolling on desktop fostered from the non-responsive days, I often immediately dismiss it as bad practice but actually I found this pattern to be very usable on my phone. Read more →
Saturday, 19 May 2018
Enums aren't natively supported in PHP but an equivalent is fairly easy to achieve using constants on a class. Futhermore I've created a Laravel package called laravel-enum which allows you access helper functions such as listing keys and values, attaching descriptions to values, and validating requests which are expecting enum values. Read more →