inwave/laravel-blog

Provides blog capabilities to your Laravel 5 installation. /!\ Better early pre-stable version

Installs: 87

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 2

Language:HTML

v1.0.6 2017-02-13 13:07 UTC

This package is auto-updated.

Last update: 2023-01-20 17:23:51 UTC


README

Description

A Laravel 5 package to add a simple blog to an existing Laravel 5 site.

Live example

Packagist

Packagist name : didcode/laravel-blog

Installation

Update your composer.json

"require": {
    "didcode/laravel-blog": "dev-master"
}
"autoload": {
    "psr-4": {
        "didcode\\Blog\\": "vendor/didcode/laravel-blog/src"
    }
}

Then refresh autoload paths by running

composer dump-autoload

Publish the configuration of the package :

php artisan vendor:publish --provider="didcode\Blog\BlogServiceProvider"

Run the migrations to create tables for posts, options and categories :

php artisan migrate

Register the provider in your config/app.php file :

providers' => [
    'didcode\Blog\BlogServiceProvider',
]

Customize your views in

resources/views/vendor/blog

You can add/edit posts :

/admin/blog/