Download the PHP package clevyr/nova-blog without Composer
On this page you can find all versions of the php package clevyr/nova-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package nova-blog
Clevyr Nova Blog Resource
Features
- Title
- Author
- Snippet
- Locales
- Customizable slug
- Featured posts
- Customizable published-at dates
- "Published" or "draft" status
- RTE content (TinyMCE)
- Featured image for posts
- Categories
- Tags (separate from Categories)
- Custom SEO information (title, description and image)
Requirements
Vue 3
Laravel 8+
Nova 3.0+
Installation
Install the package
Publish Files
Run Migrations
Config
Blog Post Settings
Option | Description | Accepted Values |
---|---|---|
blog_posts_table | The database table name where posts should be stored | String |
post_model | The Eloquent model for the posts | Eloquent Model Class |
nova_resource | The Nova Resource file for the posts | Nova Resource Class |
base_uri | The base URI for blogs. ex: website.com/blog |
String with leading / |
post_uri | The base URI for blogs posts. ex: website.com/blog/post /post-slug |
String with leading / |
locales | An array of locales with a key => value of 'locale_slug' => 'locale display string' | Array |
Tag & Category Settings
Reference 3rd party package - https://github.com/spatie/nova-tags-field
Accessing Data
Via Routes
Fetch all published posts
Route: $base_uri/get-published-posts
Example: /blog/get-published-posts
Returns: JSON of all published blog posts
Fetch individual post
Route: $base_uri/$post_uri/{post_slug}
Example: /blog/post/my-blog-post
Returns: Eloquent object of Post model
Fetch all published posts with a certain tag or category applied
Route: $base_uri/filter?type={category or tag name}
Example: /blog/filter?type=tag1
Returns: Array of Eloquent objects of Post model
Setting Default Images
To set default images for posts, featured images or seo images, you can create a new migration to change the default value.
All versions of nova-blog with dependencies
emilianotisato/nova-tinymce Version ^2.0
eminiarts/nova-tabs Version ^2.0
spatie/laravel-feed Version ^4.1
spatie/laravel-tags Version ^4.3
spatie/nova-tags-field Version ^4.0