Laravel search function using GET request.

I recently had to create a search function in Laravel, so I thought I'd share it! An addition to the generic search, which I had to add to the query, was to only return rows that had a future date. It works perfectly except for the issue with pagination. Because…

Caching delay issue on Laravel 4 and MAMP resolved.

Whilst working on a Laravel project, I would make a change on one of my blade template pages, refresh the browser and no changes would show (even a simple text change). I use a live refresh tool to show the changes instantaneous so you can imaging how annoying this was…

A really nice Terminal theme

If you use Terminal quite a bit, like me, the default theme isn't the best design Apple. Scouting the internet, this theme came up - Peppermint Terminal Theme 2.1: Peppermint Terminal theme screenshot…

Remove and delete a directory and its contents using Linux commands

rm -rf "DirectoryName" This will delete the entire directory without prompting you to delete its subdirectories, in Linux (without quotations).…

Using LEFT OUTER JOIN correctly with two predicates.

On a little project I'm working on, I needed to LEFT OUTER JOIN table 'a' with table 'b' - "Show the user all the societies they have not yet joined.", but I had two predicates to work with, a user ID. My table 'a', has a list of societies a…

jQuery and PHP username/email availability checker

My username/email availability checker is an improvement to this one (why reinvent the wheel?). There were a few syntax errors and the MySQL connection wasn't as secure as a PDO one. So, if you have a form that requires an email/username check, this will do just that. Email…