1. Stop the container(s) using the following command:docker-compose down
  2. Delete all containers using the following command:docker rm -f $(docker ps -a -q)
  3. Delete all volumes using the following command:docker volume rm $(docker volume ls -q)
  4. Restart the containers using the following command:docker-compose up -d

git credentials

sick of having to manually enter your git credentials?

execute the following in your repo and your cred’s will be stored locally

git config credential.helper store

Kill all nginx processes

sudo fuser -k 443/tcp && sudo fuser -k 80/tcp

PHP UNIT run single test

./vendor/bin/phpunit –filter  testClientList ClientTest tests/Feature/ClientTest.php

Access Vuex Properties / Getters

I found it difficult to find how exactly to access a Vuex getter when using a namespace, here is a clean snippet

Directly access the property with:


Access the getter with:


TS 2585 TypeScript compile error: ‘Promise’ only refers to a type, but is being used as a value here

Upgrade (cleanly) from PHP 7.0 to PHP 7.1

Invoice Ninja Ubuntu – PHP 7.0 upgrade guide.

PHP 7.0 is now EOL, so time to upgrade!

You could move straight up to the latest PHP which at the time of writing is 7.2, however for our application stack, we will only be moving to 7.1

The first thing that needs to be done is all your NGINX configs need to point to the new FPM process, simply sed the conf files replacing 7.0 with 7.1

Next install all the required PHP libs

Now lets start up the 7.1 service

Lets restart NGINX so that it picks up the new PHP 7.1 fpm process

And now lets get rid of the old PHP version

Bonus points –

Remember your PHP version is now referencing a new PHP.ini file… make sure you bring across all your required changes such as session handlers etc etc

add data to session variables laravel


Compound Indexes

drop index INDEX_NAME on TABLE_NAME;

ALTER TABLE TABLE_NAME add index INDEX_NAME(col1, col2);

git squash – cleanly

git reset –soft $(git merge-base develop elasticsearch) && git commit -am “Full text search with Laravel Scout” && git rebase -i develop