shebinleovincent/laravel-blog

Laravel 5 blog package with admin views for managing blog entries.

1.2.3 2019-04-24 14:57 UTC

This package is not auto-updated.

Last update: 2024-05-02 15:45:55 UTC


README

Build Status Total Downloads Latest Stable Version License

Laravel 5 blog package with admin views for managing blog entries.

Take a look at CONTRIBUTING.md to see a to do list.

Installation

Via Composer

composer require shebinleovincent/laravel-blog

Usage

Run migration

php artisan migrate

Publish config

php artisan vendor:publish --provider="ShebinLeoVincent\LaravelBlog\LaravelBlogServiceProvider"

Config file

You can change the blog name, blog layout for views, blog route path for public listing and admin page using config file located in `config/`.

return [
	'blog'  => [
		'name'       => 'Blog', // name of the blog which will be displayed in the public listing page.
		'layout'     => 'vendor.laravel-blog.layout', // layout for all blog views
		'route_path' => 'blog', // route path for public blog entry listing (/blog) and blog entry page (/blog/{slug})
		'route_name' => 'blog', // route name for public blog entry listing (blog.index) and blog entry page (blog.show)
	],
	'admin' => [
		'name'       => 'Manage Blog', // name will be displayed in the manage page.
		'layout'     => 'vendor.laravel-blog.layout', // layout for all blog views
		'route_path' => 'admin/blog', // route path for admin pages for managing blog entries (/admin/blog)
		'route_name' => 'admin.blog', // route name for admin pages for managing blog entries (admin.blog.index)
		'middleware' => [], // add middleware to protect admin pages e.g. [ 'auth' ]
	],
];

Blog routes

/blog - public route to list all blog entries.

/admin/blog - route to manage (create / edit / publish) the blog entries.

Change log

Please see the CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING.md for details and a todolist.

Security

If you discover any security related issues, please email shebinleovincent@gmail.com instead of using the issue tracker.

Credits

License

MIT License. Please see the license file for more information.