Skip to content

Commit 3af1e6f

Browse files
committed
joinLimits
1 parent 04902ce commit 3af1e6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,10 @@ It also sets the column "customer_id" on "create" to "12" and removes the column
757757

758758
You may use the "joinLimits" and "pageLimits" middleware to prevent database scraping.
759759
The "joinLimits" middleware limits the table depth, number of tables and number of records returned in a join operation.
760+
If you want to allow 5 direct direct joins with a maximum of 25 records each, you can specify:
760761

761-
'joinLimits.depth' => 2,
762-
'joinLimits.tables' => 3,
762+
'joinLimits.depth' => 1,
763+
'joinLimits.tables' => 5,
763764
'joinLimits.records' => 25,
764765

765766
The "pageLimits" middleware limits the page number and the number records returned from a list operation.

0 commit comments

Comments
 (0)