itsimplycom / nova-blogify-tool
Create a simple blogging system inside Laravel Nova in one click
dev-master
2018-10-26 14:26 UTC
Requires
- php: >=7.1.0
- dimsav/laravel-translatable: ^9.2
- intervention/image: ^2.4.0
- itsimplycom/nova-translatable: dev-develop
- jameslkingsley/nova-media-library-field: ^1.0
- spatie/laravel-medialibrary: ^7.5
This package is auto-updated.
Last update: 2025-02-23 01:00:38 UTC
README
Description
This tool will create a simple blogging system inside Laravel Nova in just one click. It currently features Category and Post resources, complete with a migration and rollback tool.
In the future I plan to add tags
and other custom fields as well.
Our Next Steps
- Make the entire content configurable
- Enhance post resource and migration
- Add tag system
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require itsimplycom/nova-blogify-tool
Next, you must register the card with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... new \Its\NovaBlogifyTool\NovaBlogifyTool() }
How to use the blog content in your applications
use Its\NovaBlogifyTool\Models\Post; use Its\NovaBlogifyTool\Models\Category; Route::get('/', function () { return view('welcome'); }); Route::get('/posts', function () { return Post::all(); }); Route::get('/posts', function () { return Category::all(); });
Settings
User model:
BLOGIFY_USER_MODEL=App\User
User nova resource:
BLOGIFY_USER_NOVA_RESOURCE=App\Nova\User
Table prefix:
BLOGIFY_TABLE_PREFIX=blogify_