how to get generated query in laravel