artisanry/articles

Easy Articles for Laravel

1.1.0 2019-06-04 07:16 UTC

README

Build Status PHP from Packagist Latest Version License

Installation

You can install the package via composer:

composer require artisanry/articles

You must publish the migration with:

php artisan vendor:publish --provider="Artisanry\Articles\ArticlesServiceProvider" --tag="migrations"

Migrate the articles table:

php artisan migrate

Optionally you can publish the config-file with:

php artisan vendor:publish --provider="Artisanry\Articles\ArticlesServiceProvider" --tag="config"

This is the contents of the file which will be published at config/articles.php

return [

    /*
     * The class name of the article model that holds all articles.
     *
     * The model must be or extend `Artisanry\Articles\Article`.
     */

    'article_model' => \Artisanry\Articles\Article::class,

    /*
     * The class name of the author model that owns all articles.
     */

    'author_model' => \App\User::class,

];

Testing

$ phpunit

Security

If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Mozilla Public License Version 2.0 (MPL-2.0).