Skip to content

Commit f61577f

Browse files
committed
Merge branch '4.x' of https://github.com/filamentphp/filament into 4.x
2 parents 308ea3e + d317639 commit f61577f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tables/docs/02-columns/01-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ TextColumn::make('users_exists')->exists('users')
143143

144144
In this example, `users` is the name of the relationship to check for existence. The name of the column must be `users_exists`, as this is the convention that [Laravel uses](https://laravel.com/docs/eloquent-relationships#other-aggregate-functions) for storing the result.
145145

146-
If you'd like to scope the relationship before calculating, you can pass an array to the method, where the key is the relationship name and the value is the function to scope the Eloquent query with:
146+
If you'd like to scope the relationship before checking existance, you can pass an array to the method, where the key is the relationship name and the value is the function to scope the Eloquent query with:
147147

148148
```php
149149
use Filament\Tables\Columns\TextColumn;
@@ -166,7 +166,7 @@ TextColumn::make('users_avg_age')->avg('users', 'age')
166166

167167
In this example, `users` is the name of the relationship, while `age` is the field that is being averaged. The name of the column must be `users_avg_age`, as this is the convention that [Laravel uses](https://laravel.com/docs/eloquent-relationships#other-aggregate-functions) for storing the result.
168168

169-
If you'd like to scope the relationship before calculating, you can pass an array to the method, where the key is the relationship name and the value is the function to scope the Eloquent query with:
169+
If you'd like to scope the relationship before aggregating, you can pass an array to the method, where the key is the relationship name and the value is the function to scope the Eloquent query with:
170170

171171
```php
172172
use Filament\Tables\Columns\TextColumn;

0 commit comments

Comments
 (0)