Prepaid SIM card in Switzerland and Germany
Travel Tip to Switzerland and Germany Just came back from Zurich-Munich trip. I’ve the habit of reading online news (via Flipboard) and playing mobile games that require internet connection during...
View ArticleLaravel 4: Using query builder lists for Form::select
Recently I realised I’ve been doing the wrong way to populate the array for Form::select(). In order to get Form::select() to work, the array you parse in must contain key => value. So in the past,...
View ArticleLaravel: order of migrations with foreign keys
Honestly I didn’t know that SQLite is so forgiving until I had to migrate to MySQL in production recently. SQLite is so forgiving that migrating to MySQL becomes a big headache. Moral of the story:...
View ArticleLaravel migration error Cannot add foreign key contraint
If you’re getting this error message when executing migration on an existing table, you’re probably having the same issue as I was. [Illuminate\Database\QueryException] SQLSTATE[HY000]: General error:...
View ArticleSetting up Laravel 5 on shared hosting server
In this tutorial, I’ll show you some guide to deploy your Laravel 5 application onto a shared hosting server. By default, the Laravel folder structure assumed that the public folder is within the...
View ArticleRedminPortal Developer Guide: How to use Coupon?
In this tutorial, I’ll show you how to apply coupon to your products and calculate the discounted price. Note: This tutorial refers to the latest develop branch which features may not be in the master...
View ArticleRedmin Series Part 1: Building a Blog with RedminPortal
In a series of tutorial, I’ll be showing you the steps of building a blog, a Podcast membership site, and an online shop for selling products, using the backend CMS RedminPortal. RedminPortal is a...
View ArticleLaravel tip: enqueue script to end of body
UPDATE (7 Jan 2016): Correction to the blade @append. It doesn’t always work if you have more than a few templates appending to the section. And so I’ve a partial blade template that contains a custom...
View ArticleHow to setup phpMyAdmin in Homestead
Writing this for my own reference. Hope it helps someone too. Install using Ubuntu repository: This will install phpMyAdmin from Ubuntu’s repositories. Assuming that your projects live in...
View ArticleLaravel-Dompdf custom font to support Simplified Chinese
Dompdf version >= 0.6 Laravel-dompdf version >= 0.4 Disclaimer: I’m using legacy Laravel 4.2 with Laravel-dompdf 0.4. This tutorial may not work for you if you’re using another versions. Try...
View Article