C.S. Rhymes

C.S. Rhymes @chrisrhymes

About: Laravel PHP and React js web developer. Part time author. I’ve also created a couple of Jekyll themes

Location:
UK
Joined:
Jan 5, 2019

C.S. Rhymes
articles - 72 total

Testing window.open() in JavaScript with Jest

I recently had to write a test for a React component that opened a new browser window. To open the...

Learn More 0 0Dec 1 '24

Adding social icons to the Bulma Clean Theme footer

Version 1.1.0 of Bulma clean theme has been released. It has a small update that allows you to easily...

Learn More 0 0Dec 1 '24

Building a landing page for your book

This post follows on from my last post about using your website to promote your ebooks. The first...

Learn More 0 0Jun 28 '24

How to promote your ebooks with your website?

I’m a web developer by trade and a part-time author, so here are a few things that I have done to...

Learn More 0 0Jun 12 '24

Using the GOV.UK Design System with Laravel

I recently worked on a project using the GOV.UK Design System with a Laravel project. The GOV.UK...

Learn More 1 0Jun 12 '24

Customising Laravel Sail services using the Laravel Build server

Laravel offers a quick and easy command to create a new Laravel project that uses Laravel Sail using...

Learn More 1 0May 21 '24

Getting started with React Hook Form

I normally develop forms in Laravel, using Livewire where possible. Laravel has some great form...

Learn More 3 0May 10 '24

Using when with the Laravel Http Client

Here’s a little tip I discovered that I haven’t seen documented anywhere. You can use when() and...

Learn More 0 0Mar 4 '24

New book announcement!

Announcing the new book, The Little-Astwick Mysteries - Trouble at the church, by C.S. Rhymes. It is...

Learn More 0 0Jan 8 '24

Using prettier to format your Jekyll theme

I have been using prettier for a few years to automatically format code, especially JavaScript and...

Learn More 0 0Jan 8 '24

First impressions of React Native as a Web Developer

I decided to try out React Native to build a native app and see how it works. I’m an experienced web...

Learn More 0 0Jan 8 '24

Optimizing Laravel Eloquent queries

Here are a few tips and tricks that I have learnt along the way to help optimize your database...

Learn More 0 0Jan 8 '24

Upgrading a Laravel Vapor app to PHP 8.2

I recently updated a Laravel app running on Laravel Vapor to PHP 8.2. I was a bit nervous about the...

Learn More 1 0Dec 23 '22

Building a VS Code Extension for Gutenberg blocks

I have been tasked with building a new website using WordPress. The last time I used WordPress was a...

Learn More 4 1Nov 18 '22

Using Pest to test Laravel Livewire validation rules

Last year I wrote a post about testing Laravel Livewire validation rules with PHP Unit. This post...

Learn More 5 1Aug 12 '22

Mocking window.location in Jest

Recently I had to write some tests for a piece of JavaScript code that used window.location. This...

Learn More 9 0Jun 18 '22

Considerations for Incremental Static Regeneration in Next.js

Next.js offers a feature called Incremental Static Regeneration (ISR) that allows you to generate a...

Learn More 3 0May 18 '22

Mocking axios in Jest tests with Typescript

Recently I wanted to write a test for a React component that uses axios to retrieve information from...

Learn More 11 0Mar 10 '22

Using GitHub Dependabot with a Monorepo

GitHub offers a dependabot service that can let you know of any potential security issues with your...

Learn More 5 0Mar 3 '22

What should I test?

You might often hear developers say that you should write tests. Great, let’s go! But what should you...

Learn More 3 0Dec 18 '21

Creating multi-worksheet Excel files with Simple Excel

Recently I had to create a large data export for a project. I like using Spatie’s Simple Excel...

Learn More 10 0Oct 13 '21

The PHP foreach loop

An alternative to the for loop, the foreach loop is used to iterate or loop over an array. The...

Learn More 10 0Oct 9 '21

The PHP for loop

If you have something you want to repeat then consider using a PHP for loop, saving you from copying...

Learn More 15 3Sep 13 '21

Refactoring to Laravel 8 Class Model Factories

Laravel 8 introduced new class based model factories and if you have an existing project you can use...

Learn More 9 0Jul 20 '21

The PHP array

Arrays are a useful toolt to store multiple values. You can access a specific value in an array using...

Learn More 6 1Jul 3 '21

Run Laravel artisan commands in PHP Storm

PHP Storm has a built in terminal window which you can use to run Laravel artisan commands, but there...

Learn More 10 1Jul 2 '21

Testing Laravel Blade Components

Recently I built a Laravel package containing Blade Components for use with the Bulma frontend...

Learn More 11 1Jun 16 '21

Testing validation rules in a Laravel Livewire component

Testing validation rules can become quite tiresome pretty quickly if you have to write each test...

Learn More 9 0May 25 '21

The PHP switch statement

In the previous article we discussed the if statement, where it said you can have many different...

Learn More 13 2May 15 '21

The PHP if statement

This is the first of a series of posts I will write that go back to basics and introduce the...

Learn More 14 0May 6 '21