Skip to content

Commit f877997

Browse files
committed
Merge branch 'develop'
2 parents 58c135b + ebb125f commit f877997

File tree

208 files changed

+9657
-5007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+9657
-5007
lines changed

config/inspirecms.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@
2828
'driver' => 'eloquent',
2929
'model' => \SolutionForest\InspireCms\Models\User::class,
3030
],
31+
'resetting_password' => [
32+
'enabled' => true,
33+
'name' => 'inspirecms',
34+
'provider' => 'cms_users',
35+
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
36+
'expire' => 60,
37+
'throttle' => 60,
38+
],
39+
3140
'failed_login_attempts' => 5,
41+
3242
/**
3343
* The number of minutes to lock the user out for after the maximum number of failed login attempts is reached.
3444
*/
@@ -40,6 +50,11 @@
4050
* Allowed values: before, after, none
4151
*/
4252
'skip_super_admin_check' => 'before',
53+
54+
/**
55+
* Skip account verification for users.
56+
*/
57+
'skip_account_verification' => false,
4358
],
4459

4560
'avatar' => [
@@ -121,6 +136,12 @@
121136

122137
'exports' => [
123138
'disk' => 'local',
139+
'exporters' => [
140+
\SolutionForest\InspireCms\Exports\Exporters\ImportUsedExporter::class,
141+
\SolutionForest\InspireCms\Exports\Exporters\DocumentTypeExporter::class,
142+
\SolutionForest\InspireCms\Exports\Exporters\FieldGroupExporter::class,
143+
\SolutionForest\InspireCms\Exports\Exporters\TemplateExporter::class,
144+
],
124145
],
125146

126147
'models' => [
@@ -165,6 +186,20 @@
165186
],
166187
],
167188

189+
'custom_fields' => [
190+
'extra_config' => [
191+
192+
\SolutionForest\InspireCms\Fields\Configs\Repeater::class,
193+
\SolutionForest\InspireCms\Fields\Configs\Tags::class,
194+
195+
\SolutionForest\InspireCms\Fields\Configs\RichEditor::class,
196+
\SolutionForest\InspireCms\Fields\Configs\MarkdownEditor::class,
197+
198+
\SolutionForest\InspireCms\Fields\Configs\ContentPicker::class,
199+
\SolutionForest\InspireCms\Fields\Configs\MediaPicker::class,
200+
],
201+
],
202+
168203
'permissions' => [
169204
'skip_access_right_permission_on_resource' => false,
170205
'guard_actions' => [

database/seeders/SampleSeeder.php

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function run()
5353
$this->importDataService->run();
5454

5555
// handle the content have contentPicker field
56-
if ($blog = $this->contentService->findByRealPath('home/blog')) {
56+
if ($blog = $this->contentService->findByRealPath('home/blog')->first()) {
5757
$availableBlogs = $this->contentService->getUnderRealPath('blogs');
5858
$blog->propertyData = json_encode([
5959
'featured_blogs' => [
@@ -83,9 +83,7 @@ public function run()
8383

8484
// temp for update content route
8585
// todo: move to import data
86-
87-
$dynamicBlogPage = $this->contentService->findByRealPath('home/dynamic-blog-page');
88-
if ($dynamicBlogPage) {
86+
if (($dynamicBlogPage = $this->contentService->findByRealPath('home/dynamic-blog-page')->first())) {
8987
event(
9088
new \SolutionForest\InspireCms\Events\Content\UpsertRoute(
9189
$dynamicBlogPage->withoutRelations(),
@@ -228,7 +226,7 @@ protected function addSampleFields(): void
228226
$items[] = new ImportDataEntities\FieldGroup(
229227
slug: 'featured_blogs',
230228
fields: [
231-
new ImportDataEntities\Field(slug: 'blogs', type: 'contentPicker', config: ['translatable' => false, 'documentType' => ['blog']]),
229+
new ImportDataEntities\Field(slug: 'blogs', type: 'contentPicker', config: ['translatable' => false, 'documentType' => 'blog']),
232230
],
233231
);
234232
foreach ($items as $group) {
@@ -300,19 +298,6 @@ protected function getSampleDocumentTypes()
300298
defaultTemplate: 'contact',
301299
icon: 'heroicon-o-question-mark-circle',
302300
);
303-
$items[] = new ImportDataEntities\DocumentType(
304-
slug: 'case-studies',
305-
showAsTable: true,
306-
showAtRoot: true,
307-
category: 'web',
308-
fieldGroups: [
309-
'page_banner',
310-
],
311-
templates: ['case-studies'],
312-
defaultTemplate: 'case-studies',
313-
icon: 'heroicon-o-clipboard-document-list',
314-
allowed: ['case-study'],
315-
);
316301
$items[] = new ImportDataEntities\DocumentType(
317302
slug: 'case-study',
318303
showAsTable: false,
@@ -326,6 +311,19 @@ protected function getSampleDocumentTypes()
326311
defaultTemplate: 'case-study',
327312
icon: 'heroicon-o-clipboard-document-check',
328313
);
314+
$items[] = new ImportDataEntities\DocumentType(
315+
slug: 'case-studies',
316+
showAsTable: true,
317+
showAtRoot: true,
318+
category: 'web',
319+
fieldGroups: [
320+
'page_banner',
321+
],
322+
templates: ['case-studies'],
323+
defaultTemplate: 'case-studies',
324+
icon: 'heroicon-o-clipboard-document-list',
325+
allowed: ['case-study'],
326+
);
329327

330328
$items[] = new ImportDataEntities\DocumentType(
331329
slug: 'config',

0 commit comments

Comments
 (0)