PHP emoji functions Aug 1st 2018 · #php #tweet 🤔 If you didn't know, you can use Unicode symbols (even emojis!) to name #php functions, variables, constants, etc. pic.twitter.com/bXNqE1G5A3— Liam Hammett (@LiamHammett) August 1, 2018
Unionise two PHP arrays Jul 26th 2018 · #php #tweet 🔥 You can use the addition operator + on two arrays to merge the keys from the first array into the second. #php pic.twitter.com/fVhWJu17DZ— Liam Hammett (@LiamHammett) July 26, 2018
PHP trait declaring a contract Jul 25th 2018 · #php #tweet 🔥 You can make a #php trait declare a contract that the parent class must adhere to (sort of) pic.twitter.com/CDUOiae0Dx— Liam Hammett (@LiamHammett) July 25, 2018
Laravel soft deleted assertion Apr 14th 2018 · #laravel #tweet Here's a little assertion helper I use for my #laravel #tdd to quickly check that a model has been soft deleted. It makes the tests just that little bit easier to read.https://t.co/QZ8kklne4P pic.twitter.com/iiEnKjyJ9G— Liam Hammett (@LiamHammett) April 14, 2018
Put the model ID in your slugs Nov 8th 2017 · #laravel #tweet Quick #laravel route tip: add a model ID before the slug so it can bind even if the slug changes. pic.twitter.com/iojvriiYtF— Liam Hammett (@LiamHammett) November 8, 2017
Bootstrap 4 pagination for Laravel Oct 25th 2017 · #laravel #tweet A little pagination partial to use for customisable #bootstrap4 pagination in a #laravel collection https://t.co/K63cFomcTz— Liam Hammett (@LiamHammett) October 25, 2017