artisanry / pages
This package is abandoned and no longer maintained.
No replacement package was suggested.
Pages for Laravel 5
2.2.0
2019-08-28 13:04 UTC
Requires
- php: ^7.2
- artisanry/parsedown: ^1.0
- artisanry/taggable: ^1.0
- cviebrock/eloquent-sluggable: ^4.4
- illuminate/support: ^5.8|^6.0
Requires (Dev)
- graham-campbell/testbench: ^5.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^6.5
README
Installation
Require this package, with Composer, in the root directory of your project.
$ composer require artisanry/pages
Migration
To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="Artisanry\Package\PagesServiceProvider"
And then run the migrations to setup the database table.
$ php artisan migrate
Usage
Create a new Page
Page::create([ 'title' => str_random(10), 'content' => '# Hello World!', 'meta' => [ 'title' => str_random(10), 'description' => str_random(10), 'author' => str_random(10), 'keywords' => implode(',' $faker->randomElements()), ], 'status' => Page::STATUS_PUBLISHED, 'type' => Page::TYPE_MARKDOWN, ]);
Parse the title, content and meta attributes.
$page->parse();
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).