Skip to content

Commit fc1dcd4

Browse files
authored
Cannot set alias during configure (#3)
1 parent 86a3d1f commit fc1dcd4

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

docs/datatable/available-methods.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,6 @@ public function configure(): void
353353
}
354354
```
355355

356-
### setQueryStringAlias
357-
358-
Set an alias for the query string.
359-
360-
```php
361-
public function configure(): void
362-
{
363-
$this->setQueryStringAlias('my-custom-alias');
364-
}
365-
```
366-
367356
## Relationships
368357

369358
**Disabled by default**, enable to eager load relationships for all columns in the component.

src/DataTableComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ public function boot(): void
7171

7272
// Set the filter defaults based on the filter type
7373
$this->setFilterDefaults();
74-
$this->configure();
7574
}
7675

7776
/**
7877
* Runs on every request, after the component is mounted or hydrated, but before any update methods are called
7978
*/
8079
public function booted(): void
8180
{
81+
$this->configure();
8282
$this->setTheme();
8383
$this->setBuilder($this->builder());
8484
$this->setColumns();

0 commit comments

Comments
 (0)