Test Driven Laravel from Scratch

One of the biggest hurdles in getting started with test driven development with a brand new application is knowing exactly what test to write first.

In this screencast, Adam Wathan walks through using outside-in TDD to drive out a feature from scratch in a brand new untouched Laravel application.

Enable SSL in OpenCart 2.x

Step-by-step instruction:

1. Set your HTTPS URL

define('HTTPS_SERVER', 'https://yourdomain.com/');

in config files


Force HTTPS only if needed:

define('HTTP_SERVER', 'https://yourdomain.com/');

Read more…

Fix URL protocol bugs in old OpenCart version (~ after enabling SSL

Symptoms: when you enable SSL in OpenCart you can’t edit the status of the order and/or don’t get the order email.

As I know, OpenCart had the serious bug somewhere in between – versions. So check your OC version and if it’s your case, the best solution is to update to a newer version. But… if you have some weighty reason why you can’t do this, try next OCMOD:

Read more…

Converting rar files to zip on FreeBSD


You need to download the script “rar2zip.sh” on the server and make it executable:

chmod +x rar2zip.sh

and then run

./rar2zip.sh "/some/directory/"

The first param is the directory path. If not specify, the script will check the current directory. Script logs are written in the folder “/tmp/rar2zip”.

Read more…