Skip to content

Commit e1618ef

Browse files
author
Marius
committed
update reserved words check
1 parent 36312b5 commit e1618ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getColumns(bool $includingPrimary = true): array
4646

4747
if (
4848
\env('LIVE_MODE') === false
49-
&& [] !== $reservedUsed = \array_intersect(['page', 'limit'], $columns)
49+
&& [] !== $reservedUsed = \array_intersect(['page', 'limit', 'cursor', 'simplePaginate'. 'sort'], $columns)
5050
) {
5151
Log::warning('LaravelCrudWizard warning: the resource ' . $this::RESOURCE_NAME .
5252
' uses reserved words as columns: ' . \implode(',', $reservedUsed));

0 commit comments

Comments
 (0)