Changed to work with Laravel