vendor and env first commit

This commit is contained in:
2025-03-28 08:52:46 +01:00
parent f8388bc81b
commit 8f26283832
10976 changed files with 1349952 additions and 2 deletions
@@ -0,0 +1,13 @@
---
title: Extending query builder
weight: 1
---
As the `QueryBuilder` extends Laravel's default Eloquent query builder you can use any method or macro you like. You can also specify a base query instead of the model FQCN:
```php
QueryBuilder::for(User::where('id', 42)) // base query instead of model
->allowedIncludes(['posts'])
->where('activated', true) // chain on any of Laravel's query methods
->first(); // we only need one specific user
```