abr4xas/simple-blog

v0.0.4 2020-12-30 03:59 UTC

This package is auto-updated.

Last update: 2020-12-30 04:01:07 UTC


README

simple-blog.png

Laravel package to handle a simple blog

Latest Version on Packagist GitHub Workflow Status Total Downloads

Installation

You can install the package via composer:

composer require abr4xas/simple-blog

You can publish and run the migrations and everything else with:

php artisan vendor:publish --provider="Abr4xas\SimpleBlog\SimpleBlogServiceProvider" --tag="simpleblog-migrations"
php artisan migrate

php artisan vendor:publish --provider="Abr4xas\SimpleBlog\SimpleBlogServiceProvider" --tag="simpleblog-controllers"

Usage

This package uses a polymorphic relationship to associate the Items model with the model of your choice, the only thing you have to do is add the following trait: Abr4xas\SimpleBlog\Traits\HasArticle to the model you want to use.

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.