Author: James

James Mills > Articles by: James

My packages are now Treeware

When Freek published “Our packages are now postcardware” I was intrigued to know what Postcardware was. Postcardware, also called just cardware, is a style of software distribution similar to shareware, distributed by the author on the condition that users send the author a postcard. https://en.wikipedia.org/wiki/Postcardware We use a number of Spatie packages and so I […]

Read More

Laravel & DataDog Timeseries Metric data using their API via TCP

We recently started to trial some of the DataDog services for a recent project I have been working on. One of the things that jumped out at me was the ability to use one account for many services. Monitoring, uptime, API testing, application profiling, live dashboards…. the list goes on. The setup is simple, you […]

Read More

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