Conditionally adding instructions to laravel's query builder
Mohamed Said has a new tutorial on his blog where he shows a very nice why to conditionally add some instructions to a query.
http://themsaid.github.io/laravel-query-conditions-20160425/
Very neat! Love that if-macro.