Download the PHP package den1n/nova-blog without Composer
On this page you can find all versions of the php package den1n/nova-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nova-blog
nova-blog
Laravel Nova blog resources.
Installation
Require package with Composer.
Publish package resources.
This will publish the following resources:
- Configuration file
config/nova-blog.php - Migration file
database/migrations/*_create_blog_tables.php - Translations
resources/lang/vendor/nova-blog - Views
resources/views/vendor/nova-blog - JavaScript assets
resources/js/vendor/nova-blog - CSS assets
resources/sass/vendor/nova-blog
Add noba-blog components provided by the package to file resources\js\app.js before Vue initialization.
Add noba-blog styles provided by the package to file resources\sass\app.scss.
Migrate database.
Add instance of class Den1n\NovaBlog\Tool to your App\Providers\NovaServiceProvider::tools() method to display the blog posts, comments, categories and tags within your Nova resources.
Serving Blog Posts
To serve blog posts append this route to your routes/web.php file.
You can define route with prefix.
You can get url to existing post by using Laravel route helper.
Default template
Blog controller will serve posts with default template.
Template is published to views directory resources/views/vendor/nova-blog/templates/default.blade.php.
Template will receive these variables when processed:
- $post: instance of
Postmodel. - $sidebarPosts: collection of
Postmodels. - $sidebarCategories: collection of
Categorymodels. - $sidebarTags: collection of
Tagmodels.
You can freely modify default template.
Creating a custom template
First create a custom blade template in resources/views/vendor/nova-blog/templates directory.
For example, rich.blade.php.
Then register it in configuration file config/nova-blog.php.
After that your custom template will be available to select when creating blog post or updating existing one.
WYSIWYG editor
By default package uses default WYSIWYG editor provided by Nova.
You can replace default editor. For example, with froala/nova-froala-field.
To do this, install the package and update editor settings in config/nova-pages.php file.
Screenshots
Posts

Post Form

Post Detail

Blog Example

Contributing
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature. - Commit your changes:
git commit -am 'Add some feature'. - Push to the branch:
git push origin my-new-feature. - Submit a pull request.
Support
If you require any support open an issue on this repository.
License
MIT
All versions of nova-blog with dependencies
laravel/scout Version ^v8.0
pmatseykanets/laravel-scout-postgres Version ^v7.0