Mutation Testing

Mutation testing is a great tool to analyze and increase the reliability of your test suite. This post highlights the concepts of Mutation Testing, how to get started using Infection PHP, and how to use mutation tests in your CI workflow.

    — Published: February 10, 2021

    Contributing to an open source PHP package

    Contributing to an open source PHP package

    Contributing to packages instead of applications can look challenging. In this blog post I want to show a workflow to work on PHP packages and be able to test them out locally.

    — Published: September 17, 2020

    How to use fake dates in Cypress end-to-end testing

    How to use fake dates in Cypress end-to-end testing

    When writing an end-to-end test (or so called browser test), it might be tricky to force the application to use a certain (fake) date. In this post, I share my approach using a custom middleware to be able to write Cypress tests while your application is in a specific (fake) date.

    — Published: September 7, 2020

    Refactoring to Livewire polling

    Refactoring to Livewire polling

    This article highlights replacing WebSockets with Livewire polling, providing a convenient alternative to event-driven broadcasting via WebSockets.

    — Published: June 19, 2020

    OAuth2 authentication across Laravel projects

    OAuth2 authentication across Laravel projects

    Logging in to separate Laravel applications using a single account. This post discusses OAuth2, Laravel Passport and Laravel Socialite to set up such a system.

    — Published: December 9, 2019

    Searching a database by e-mail

    Searching a database by e-mail

    Using Laravel Mailbox to allow users to search (multiple) databases and receive the results as a reply to their e-mail.

    — Published: October 18, 2019

    Creating a Laravel specific package

    Creating a Laravel specific package

    In this series of blog posts I try to provide a comprehensive guide toward creating Laravel packages from scratch. This series of posts will guide you through creating a Laravel specific package from scratch including use of facades, configuration, service providers, models, migrations, routes, controllers, views, assets, events and writing tests.

    — Published: September 17, 2019

    Using promises to indicate progress to waiting users

    Using promises to indicate progress to waiting users

    Sometimes in your web application you will need to perform some (really) slow tasks. It can be helpful to inform your users that there is some kind of progress while they are waiting. In this post, I want to discuss a possible solution toward creating a progress indicator.

    — Published: September 7, 2019

    Handle incoming mail in Laravel

    Handle incoming mail in Laravel

    Handle incoming e-mails in your Laravel application using Laravel Mailbox (by Marcel Pociot) and Mailgun.

    — Published: July 29, 2019

    WebSockets in Laravel

    WebSockets in Laravel

    The Laravel WebSockets package provides an alternative to Pusher for broadcasting over WebSocket technology. This article covers both implementations using a demo application.

    — Published: July 1, 2019

    Refactoring toward reusable Vue components

    Refactoring toward reusable Vue components

    Refactoring a Dragonball Z character selection Vue component into a more reusable, generic image-selector using renderless components vs provide/inject.

    — Published: June 28, 2019

    [email protected]