Laravel defaults to storing all dates in UTC format, this is highly recommended as UTC time never changes unlike other time zones which have daylight savings. It is best practice to store and read dates in UTC, and then convert UTC to your required time zone for the user interface. Great article below of a
Continue reading...
PHP
Adding the following code to the top of your PHP script will allow that page to show PHP error messages and override the php.ini defaults. This is a good and simple way to quickly debug a page without having to adjust your main PHP config (which isn’t always possible).
Continue reading...
Here is a function I have created which is used to generate a sequence of random numbers, letters and symbols. I currently use it on a number of projects including http://passworded.co.uk which is a simple password generator.
Continue reading...