Open in app

Sign In

Write

Sign In

James Fairhurst
James Fairhurst

66 Followers

Home

About

Apr 12, 2019

Serving 404s for Old Blog Posts with NGINX on Laravel Forge

Originally published at www.jamesfairhurst.co.uk. Previously my old site hosted quite a number of really old blog posts, most recent was 2013 with the majority in 2008 when I was primarily developing in CakePHP. I wanted a clean slate (as do all devs!) so decided not to port them over or…

Nginx

2 min read

Nginx

2 min read


Apr 12, 2019

Splitting Out Log Levels With Laravel

If you’re using Laravel 5.5 or below my old medium article may be what you’re after. The following will only work in recent versions. The Monolog logging library that Laravel uses is really quite powerful, like most things in the framework it works flawlessly out of the box and unless…

Laravel

2 min read

Splitting Out Log Levels With Laravel
Splitting Out Log Levels With Laravel
Laravel

2 min read


Apr 5, 2019

Creating a Dynamic SVG Image with Laravel

Originally published at www.jamesfairhurst.co.uk. I really like the svg image in the header of the blog, it was taken from SVG Backgrounds and I thought it would be quite cool to try to animate it by updating the colours to convey some sort of wave. …

CSS

3 min read

Creating a Dynamic SVG Image with Laravel
Creating a Dynamic SVG Image with Laravel
CSS

3 min read


Mar 29, 2019

Tracking Pageviews Server Side with Google Analytics and Laravel

Originally published at www.jamesfairhurst.co.uk. Wanting to use as little JavaScript as possible on my new site I didn’t want to go down the traditional route of adding Google’s global site tag (gtag.js) or Google Tag Manager — it feels a bit dirty these days and I personally use Ghostery to…

Laravel

2 min read

Laravel

2 min read


Mar 22, 2019

Serving 404s for Old Subdomains with NGINX on Laravel Forge

Originally published at www.jamesfairhurst.co.uk. Previously my old site hosted quite a number of subdomains for old projects and scripts, when moving to Laravel Forge and setting up SSL everything now gets redirected. …

Nginx

1 min read

Nginx

1 min read


Mar 15, 2019

Importing Your Blog Posts into Medium

Originally published at www.jamesfairhurst.co.uk. Medium is a great place for content, combined with the lovely easy interface for writing it seemed a great place to put all your publications. As they’ve grown and started to try to make money (as they should) things have become a little more restrictive. Paid…

Medium

3 min read

Medium

3 min read


Mar 2, 2019

2019

Originally published at www.jamesfairhurst.co.uk. Every New Year is a fresh slate, people make resolutions, review the previous year and set intentions on what they want to do this year. I’m no different! My site was very outdated and cringe worthy, last post was in 2013 and things have changed (2…

Development

8 min read

2019
2019
Development

8 min read


May 15, 2017

Laravel Dusk on CircleCI

I wanted to get dusk running on CircleCI for a recent project and while there are a few recent articles unfortunately they didn’t work for me. Using the official config file from the docs as a starting point I was getting the following error: 1) Tests\Browser\ExampleTest::testBasicExample Facebook\WebDriver\Exception\UnknownServerException: unknown error: Chrome version…

Laravel

2 min read

Laravel Dusk on CircleCI
Laravel Dusk on CircleCI
Laravel

2 min read


Jan 19, 2017

Configuring Multiple Laravel Log Files

Recently I wanted to split out log files depending on the severity level however it was a bit trickier than I expected. The official docs mention configuring Monolog but don’t provide much detail. …

Laravel

1 min read

Laravel

1 min read


Oct 18, 2016

Bitbucket Pipelines and Laravel

I recently got notified of Pipelines in Bitbucket which is a nice feature, I’ve used similar tools such as Travis CI & Codeship previously which are great but having CI built into your private Bitbucket repos is super handy. Turns out it’s relatively straight forward to get up & running…

Laravel

3 min read

Bitbucket Pipelines and Laravel
Bitbucket Pipelines and Laravel
Laravel

3 min read

James Fairhurst

James Fairhurst

66 Followers

You live till you die - QOTSA

Following
  • Nick Wignall

    Nick Wignall

  • Mark Manson

    Mark Manson

  • Przemek Chojecki

    Przemek Chojecki

  • Wil Wheaton

    Wil Wheaton

  • Daan

    Daan

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech