Skip to content

Commit 7fdcca5

Browse files
author
Marius
committed
update reserved words check
1 parent e1618ef commit 7fdcca5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ headers:
216216
217217
Accept: application/json or application/xls
218218

219-
InHeaderQuery: ...
220-
221219
Json Response:
222220

223221
200:

src/Models/BaseModel.php

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

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

0 commit comments

Comments
 (0)