mattmangoni / nova-blogify-tool
Create a simple blogging system inside Laravel Nova in one click
Installs: 1 681
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 2
Forks: 12
Open Issues: 1
Requires
- php: >=7.1.0
- intervention/image: ^2.4.0
- jameslkingsley/nova-media-library-field: ^1.0
This package is not auto-updated.
Last update: 2024-09-01 05:16:59 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 mattmangoni/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 \Mattmangoni\NovaBlogifyTool\NovaBlogifyTool() }
How to use the blog content in your applications
use Mattmangoni\NovaBlogifyTool\Models\Post; use Mattmangoni\NovaBlogifyTool\Models\Category; Route::get('/', function () { return view('welcome'); }); Route::get('/posts', function () { return Post::all(); }); Route::get('/categories', function () { return Category::all(); });