How to dynamically append multiple conditions to laravel query?