Sync code with laravel changes.

Signed-off-by: crynobone <crynobone@gmail.com>