fixed code formatting to match laravel's style