Peter Fox

Peter Fox @peter_fox

About: 🐘 Laravel & PHP developer 🇬🇧 British

Location:
Northamptonshire
Joined:
Mar 2, 2019

Peter Fox
articles - 40 total

Mastering PHP: Type Hinting techniques

Photo by 𝓴𝓘𝓡𝓚 𝕝𝔸𝕀 on Unsplash Type hinting is considered by some to be the holy grail of features....

Learn More 0 0Oct 4 '24

PHP Upgrades: Block regressions with PHPStan

Photo by Ron McClenny on Unsplash Often when people think of PHPStan they typically think of...

Learn More 0 0Sep 24 '24

Fix your Type Hints with Configurable Rules and PHP Rector

Photo by Conny Schneider on Unsplash Making your own rules to work with Rector PHP can be a bit of...

Learn More 0 0Sep 24 '24

Mastering Code Refactoring: A Complete Guide to Using Rector PHP

Photo by Matteo del Piano on Unsplash Introduction to Rector PHP In the ever-evolving...

Learn More 12 0Aug 25 '24

PHP: Mocking Closures and performing assertions

Photo by rivage on Unsplash Testing is crucial to ensuring code quality and reliability in modern...

Learn More 0 0Aug 25 '24

Laravel Scout: Eager loading models for indexing

Photo by Maksym Kaharlytskyi on Unsplash If you’re like me you want to get eager loading right from...

Learn More 0 0Aug 25 '24

Laravel Testing: Mocking static methods with the container

Photo by ShareGrid on Unsplash I came across a difficult challenge this week. How can I mock a...

Learn More 0 0Apr 4 '24

PHP: 7 tricks to help with upgrading Composer packages

Photo by JESHOOTS.COM on Unsplash Recently I had the pleasure of taking an enterprise app and...

Learn More 0 0Feb 26 '24

Laravel Feature Flags: Choosing a Package

Photo by Vladislav Klapin on Unsplash Introduction Laravel Pennant is now available...

Learn More 0 0Apr 4 '24

Implementing Feature Flags

Photo by Glen Rushton on Unsplash Feature flags are not a new concept. You might already have what...

Learn More 0 0Jan 24 '23

Laravel Tip: Store your test coverage with CodeCov

Photo by Ricardo Resende on Unsplash Before getting started, I'd love for you to consider checking...

Learn More 0 0Dec 9 '22

Laravel Tooling: 4 tools for static analysis

Laravel Tooling: 4 useful tools for static analysis Photo by Isaac Smith on...

Learn More 5 0Nov 21 '22

Laravel Features: Setting up and Working with OpenAI

Photo by Alex Knight on Unsplash If you haven’t heard of OpenAI or GPT-3 then you haven’t been...

Learn More 18 0Oct 24 '22

Laravel Tip: Customising Maintenance Mode

Photo by Dmitriy Demidov on Unsplash I feel one of the lesser used features of Laravel is it’s...

Learn More 1 0Sep 29 '22

Laravel Tip: Automatically updating your projects’ dependencies in GitHub

Photo by Headway on Unsplash Github Actions is one of the most useful things to come out for...

Learn More 6 0Sep 18 '22

Laravel Tip: 6 tools I use regularly to speed up development + 1 bonus one

Photo by Barn Images on Unsplash As a professional developer of over 10 years I’ve learnt one thing...

Learn More 2 0Sep 18 '22

Laravel Console: Options for your Seeders

Photo by Nikola Jovanovic on Unsplash Seeding the Laravel database can often be a bit of a chore....

Learn More 0 0Jan 5 '22

Laravel Internals: Proxy pattern with the ForwardsCalls trait

Photo by Quino Al on Unsplash Sometimes it’s good to put PHP’s magic methods to use. One such magic...

Learn More 2 0Dec 16 '21

Laravel Tip: Use CockroachDB’s Serverless database for your hobby projects

Photo by Jonatan Lewczuk on Unsplash It’s a hard thing to justify costs when running a startup or...

Learn More 8 0Nov 18 '21

Laravel Authentication: Understanding Guards and implementing Authenticatables

Photo by Grant Durr on Unsplash Laravel has one of the most common features a website will need...

Learn More 29 0Nov 13 '21

Laravel Tip: Set a seeding seed

Photo by Francesco Gallarotti on Unsplash Pretty much all apps will eventually have some quite...

Learn More 0 0Oct 25 '21

Laravel Models: 3 Common custom cast examples

Photo by Khadeeja Yasser on Unsplash Custom casts have been in Laravel since version 7 and it’s one...

Learn More 6 0Oct 25 '21

Laravel Opinion: 5 things be consist about in your applications

Photo by Marissa Daeger on Unsplash One of the things I personally love of the Laravel framework is...

Learn More 5 0Sep 14 '21

Laravel Octane: Build your first plugin for RoadRunner

Photo by Alan Rodriguez on Unsplash Hopefully in choosing to read this article you will have read my...

Learn More 4 0Aug 23 '21

Laravel Octane: Compiling RoadRunner from Source

Photo by Jean Gerber on Unsplash RoadRunner is one of the two options available for use with Laravel...

Learn More 0 0Aug 20 '21

Laravel Octane: Running RoadRunner directly with .rr.yaml

Laravel Octane: Running RoadRunner directly with .rr.yaml Photo by Oktay Yildiz on...

Learn More 1 0Jul 22 '21

Laravel Internals: Complex Array building

Photo by Ben Allan on Unsplash One of the most common issues you can have in PHP is merging arrays...

Learn More 0 0Jul 22 '21

Laravel Tips: Making your own trait ‘hooks’ for tests (the better way)

Photo by Matthew McBrayer on Unsplash I originally wrote Laravel Tips: Making your own trait ‘hooks’...

Learn More 1 0Feb 28 '21

Laravel Tip: Testing your emails contents

Photo by CDC on Unsplash One of the things I originally found difficult in the Laravel framework is...

Learn More 2 0May 20 '20

Laravel Tip: Desktop notifications from your tests

Photo by Carl Heyerdahl on Unsplash If you didn’t know, Laravel now has a php artisan test command w...

Learn More 10 1May 20 '20