Snippets


March 20, 2024

Add URI Tag to Telescope Requests

This adds the ability to add a URI tag to requests in order to filter requests in Telescope by the URI. The URI tag will now be added to the request in Telescope. And the requests can now be...

Read

April 16, 2018

Combining several .sql files into a single .sql file

This concatenates all files into a single .sql file.

Read

April 27, 2017

Laravel: Listening for Query Events

Read

February 15, 2016

How to change the system time in Unix based systems

You can check the Unix system date/time with this command. To update it to the correct time, replacing HH with the hours (24 hour), MM with minutes and SS with the seconds.

Read

February 7, 2016

Restarting PHP on an NGINX server

Read

June 12, 2015

Create a dump of a MySQL database

To create a dump of a MySQL database, use the mysqldump command-line utility. This utility is installed with MySQL, and can be used to dump a database to a file.

Read

May 7, 2015

Foreign key restraints in SQLite

Read

April 10, 2015

Combining and adding numerical arrays in PHP

When using the array_merge() function, if the keys are numerical, then the array will be reindexed starting at 0. If you want to key the same numerical indexes, simply add the arrays...

Read

April 10, 2015

Laravel: Get controller action name in the request

Read

April 9, 2015

Copy an array in Javascript by value, not by reference

Read