Download the PHP package chrisjk123/laravel-blogger without Composer
On this page you can find all versions of the php package chrisjk123/laravel-blogger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chrisjk123/laravel-blogger
More information about chrisjk123/laravel-blogger
Files in chrisjk123/laravel-blogger
Package laravel-blogger
Short Description blog package
License MIT
Homepage https://github.com/chrisjk123/laravel-blogger
Informations about the package laravel-blogger
Add blog database tables to a Laravel app
Table of Contents
- Introduction
- Requirements
- Installation
- Testing
- Usage
- Changelog
- Security
- Credits
- License
Introduction
This package is a blogging database with maxed out models, migrations and seeders to help get you setup. After the package is installed the only thing you have to do is add the HasPosts
trait to an Eloquent model to associate the users.
Here are some code examples:
Requirements
This package requires Laravel 5.8 or higher, PHP 7.2 or higher and a database that supports json fields and MySQL compatible functions.
Installation
Note: Laravel Blogger requires you to have user authentication in place prior to installation. For Laravel 5. based projects run the
make:auth
Artisan command. For Laravel 6. based projects please see the official guide to get started.
You can install the package via composer:
Publish the primary configuration file using the blog:install
Artisan command:
This is the contents of the published config file, if your User
class is
within a different directory or has a different primary key it can be changed here.
Optionally you can follow the artesaos/seotools guide to help provide some common SEO techniques for your public frontend:
Testing
Run the tests with:
Usage
All you have to do is add the HasPosts
to your User model to get started.
Furthermore, in the configuration file, the default is set to true for allowing both user and public commenting on posts is set here.
You can get setup quickly by using the blog:setup
Artisan command.
This publishes the routes, controllers and views. Optionally you can seed the
database with factory()
data by specifying the data --data
option.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Christopher Kelker
- All Contributors
License
The MIT License (MIT). Please see License File for more information.