laravel port of smalltabs.com (learning purposes only. All copyright belongs to @mattmesker)