I don't know about others but I use Query scopes and they are in the model.
Especially select type statements sometimes insert and update I do in the controller.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, . I am new and learning laravel for now, if I write a 'Query Builder', where is my best place to place it? . What if I place it in the 'Eloquent Model' as a static function? please give your answer about the best placement for this . Thanks all ^ _ ^
Please or to participate in this conversation.