Query scopes in Laravel let you add reusable filters to database queries by defining methods in your model. These methods start with 'scope' and receive the query builder as the first argument. Inside the scope, you add conditions like where clauses. When you call the scope on the model, Laravel calls the method without the 'scope' prefix and applies the filter. The scope returns the modified query builder so you can chain multiple scopes. Finally, calling get() executes the SQL query and returns filtered results. This visual trace showed how the query builder changes step-by-step from creation, modification by the scope, to execution and result retrieval.