Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
database/migrations
src
tests
.editorconfig
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist
renovate.json

README.md

Laravel Articles

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).

You can’t perform that action at this time.