Bug fixes in Laravel 4.1.

Signed-off-by: William <william@amovens.com>