dewsign / nova-blog
Blogging plugin for Laravel Nova
Installs: 837
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 3
Open Issues: 0
Type:package
Requires
- php: >=7.0.0
- benjaminhirsch/nova-slug-field: ^1.0
- dewsign/laravel-authors: ^1.0.0
- dewsign/nova-field-sortable: ^0.2.0
- dewsign/nova-repeater-blocks: ^1.8.4
- epartment/nova-dependency-container: ^1.1
- laravel/framework: >=5.0.0
- maxfactor/support: ^2.6.11
- silvanite/brandenburg: ^1.0
Requires (Dev)
- squizlabs/php_codesniffer: >=3.1
- dev-master
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- 1.0.1
- v1.0.0
- dev-fix-no-dev
- dev-task-search-improvements
- dev-task-image-alts
- dev-task-authors
- dev-published-scope
- dev-seed-published-date
- dev-feature-sitemap-pagination
- dev-fix-morph-maps
- dev-fix-index-canonicals
- dev-fix-typo
- dev-task-decouple
- dev-fix-category-list-ordering
- dev-fix-migrations
- dev-task-searchable
- dev-task-repeater-blocks
This package is auto-updated.
Last update: 2024-12-07 21:54:09 UTC
README
Easily add a Blog with Articles and Categories in Nova using repeaters blocks for content. See documentation for Repeater Blocks for details.
Installation
composer require dewsign/nova-blog
Run the migrations
php artisan migrate
Load the tool in your NovaServiceProvider.php
public function tools() { return [ ... new \Dewsign\NovaBlog\Nova\NovaBlogTool, ... ]; }
Templates
The packages doesn't come with any pre-made templates. Simply replace the published views.
Configuration
Repeaters
Add additional repeater blocks by adding it to the nova blog config
'repeaters' => [ 'More\Repeaters' ],
Or remove all standard repeaters and use your own selection.
'replaceRepeaters' => true,
Customisation
If you want more control, you can specify which Nova Resources and Models to use. Because of the way nova reads the model from a static variable you must provide your own custom resource if you want to use a custom model.
'models' => [ 'article' => 'App\Article', ], 'resources' => [ 'article' => 'App\Nova\Article', ],
Nova Resource Group
'group' => 'Blog',
You can customise the nova resource group.
Routing
Blog, category and article routing is all included under the /blog
slug.
Factories & Seeders
The package comes with pre-made factories and seeders. Should you wish to include them in your application simply call the seeder or use the factory provided.
// database/seeds/DatabaseSeeder.php public function run() { $this->call(Dewsign\NovaBlog\Database\Seeds\CategorySeeder::class); $this->call(Dewsign\NovaBlog\Database\Seeds\ArticleSeeder::class); }
Permissions
A BlogPolicy is included, but not loaded by default, for Brandenburg / Nova Tool. Simply load the AuthServiceProvider from this package.
// config/app.php 'providers' => [ ... Dewsign\NovaBlog\Providers\AuthServiceProvider::class, ],