Add a history of posts and pages with restore
This commit is contained in:
1 parent
eb37a7c6fb
commit
6fdb02040b
20 files changed
+482
-8
No files matched your search
@@ -53,6 +53,7 @@ return [
|
||||
Modules\Audit\AuditModule::class,
|
||||
Modules\Statistics\StatisticsModule::class,
|
||||
Modules\Resources\ResourcesModule::class,
|
||||
Modules\Revisions\RevisionsModule::class,
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -69,6 +70,7 @@ return [
|
||||
'audit' => env('MANAGER_AUDIT', false),
|
||||
'statistics' => env('MANAGER_STATISTICS', false),
|
||||
'resources' => true,
|
||||
'revisions' => env('MANAGER_REVISIONS', true),
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -175,6 +177,13 @@ return [
|
||||
*/
|
||||
'extensions' => [],
|
||||
|
||||
/*
|
||||
| The history of posts and pages (module `revisions`): `keep` states per record, more `types` of the site's own
|
||||
| (['services' => ['model' => App\Models\Service::class, 'view' => 'services.view', 'restore' => 'services.manage']]),
|
||||
| and `skip` for model classes that should not have one.
|
||||
*/
|
||||
'revisions' => ['keep' => 50, 'types' => [], 'skip' => []],
|
||||
|
||||
/*
|
||||
| The menu. `items` changes what a module gives, by the route name without the prefix:
|
||||
| 'posts.index' => ['order' => 10, 'section' => 'Content', 'icon' => 'file', 'simple' => true, 'hidden' => false].
|
||||
|
||||
Reference in new issue
Block a user