82 lines
2.1 KiB
PHP
82 lines
2.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
'post_model' => \App\Models\BlogPost::class,
|
|
'category_model' => \App\Models\BlogCategory::class,
|
|
'tag_model' => \App\Models\BlogTag::class,
|
|
'panels' => [
|
|
'superadmin' => [
|
|
'resources' => [
|
|
\Stephenjude\FilamentBlog\Filament\Resources\PostResource::class,
|
|
\Stephenjude\FilamentBlog\Filament\Resources\CategoryResource::class,
|
|
\Stephenjude\FilamentBlog\Filament\Resources\TagResource::class,
|
|
],
|
|
],
|
|
],
|
|
|
|
/**
|
|
* Supported content editors: richtext & markdown:
|
|
* \Filament\Forms\Components\RichEditor::class
|
|
* \Filament\Forms\Components\MarkdownEditor::class
|
|
*/
|
|
'editor' => \Filament\Forms\Components\RichEditor::class,
|
|
|
|
/**
|
|
* Configs for Posts banner file that give you option to change
|
|
* Disk,Directory name , maximum upload size and the
|
|
* Crop aspect ratio of the Posts banner image.
|
|
*/
|
|
'banner' => [
|
|
'disk' => 'public',
|
|
'directory' => 'blog',
|
|
'maxSize' => 5120,
|
|
'cropAspectRatio' => '16:9',
|
|
'visibility' => 'public',
|
|
],
|
|
|
|
/**
|
|
* Configs for Posts that give you option to change
|
|
* the sort column and direction of the Posts.
|
|
*/
|
|
'sort' => [
|
|
'column' => 'published_at',
|
|
'direction' => 'desc',
|
|
],
|
|
|
|
/**
|
|
* Configs for Author Avatar file that give you option to change
|
|
* Disk,Directory name , maximum upload size and the
|
|
* Of the Author avatar image.
|
|
*/
|
|
'avatar' => [
|
|
'disk' => 'public',
|
|
'directory' => 'blog',
|
|
'maxSize' => 5120,
|
|
'visibility' => 'public',
|
|
],
|
|
|
|
/**
|
|
* Buttons for text editor toolbar.
|
|
*/
|
|
'toolbar_buttons' => [
|
|
'attachFiles',
|
|
'blockquote',
|
|
'bold',
|
|
'bulletList',
|
|
'codeBlock',
|
|
'h1',
|
|
'h2',
|
|
'h3',
|
|
'hr',
|
|
'image',
|
|
'italic',
|
|
'link',
|
|
'orderedList',
|
|
'redo',
|
|
'strike',
|
|
'table',
|
|
'underline',
|
|
'undo',
|
|
],
|
|
];
|