fixed code block in laravel eloquent model