modified template to work with laravel