faustbrian/laravel-articles

Easy Articles for Laravel

dev-master / 1.0.x-dev 2018-11-10 06:33 UTC

README

Build Status PHP from Packagist Latest Version License

Installation

You can install the package via composer:

composer require faustbrian/laravel-articles

You must publish the migration with:

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

Migrate the articles table:

php artisan migrate

Optionally you can publish the config-file with:

php artisan vendor:publish --provider="BrianFaust\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 `BrianFaust\Articles\Article`.
     */
    
    'article_model' => \BrianFaust\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@brianfaust.me. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © Brian Faust