This commit is contained in:
Bastian Allgeier
2020-07-07 12:40:13 +02:00
parent 5f025ac2c2
commit f79d2e960c
176 changed files with 10532 additions and 5343 deletions

View File

@@ -17,10 +17,11 @@ return [
],
'props' => [
/**
* Optional array of templates that should only be allowed to add.
* Optional array of templates that should only be allowed to add
* or `false` to completely disable page creation
*/
'create' => function ($add = null) {
return $add;
'create' => function ($create = null) {
return $create;
},
/**
* Enables/disables reverse sorting
@@ -135,8 +136,9 @@ return [
// pagination
$pages = $pages->paginate([
'page' => $this->page,
'limit' => $this->limit
'page' => $this->page,
'limit' => $this->limit,
'method' => 'none' // the page is manually provided
]);
return $pages;