abr4xas / simple-blog
v0.0.4
2020-12-30 03:59 UTC
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
- sinnbeck/markdom: ^1.1
- spatie/laravel-sluggable: ^2.6
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- psalm/plugin-laravel: ^1.4
- vimeo/psalm: ^4.3
README
Laravel package to handle a simple blog
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.