Author: James

James Mills > Articles by: James

Adding a helpers file in Laravel

Every now and then you will probably find yourself in the need to use a custom function in your Laravel application. I cannot think of one project which I have worked on where I haven’t needed to add a quick and easy custom function. Our controllers don’t contain actions outside of the 7 resource actions […]

Read More

How to set Social Sharing Images

You may have noticed that when you share my blog posts on Social Media and services like Slack, Telegram and WhatsApp etc. you get to see a nice image accompanying the link to the post. Improved CTR These images really help with Click Through Rate (CTR) and I have found that engagement on the shares […]

Read More

How to return JSON from Laravel Form Request validation errors

UPDATE 10th June 2019 : I posted this article on LaravelUK Slack channel and David T gave me some valuable feedback. You can force Laravel to always return only JSON by specifying the Accept header However, there may be instances where you want to force it regardless and the below article demonstrates how to do […]

Read More

Favourite Laravel packages I always install

I thought it might be helpful for me to share a handful of packages which I find myself installing whenever I start a new Laravel application. Let me know if there are any missing! Laravel Debug bar barryvdh/laravel-debugbar (Github / Packagist) Probably the first package I install in every Laravel project is the laravel Debug […]

Read More

Refresh Teesside 2019

The begining Many people think Refresh Teesside started in 2012, but our first event was actually on Thursday 2nd April 2009, which I announced on this very blog. It was September 2008 when I built the first Refresh Teesside website and announced our manifesto. The first event was a great success and the attendance surpassed my […]

Read More