bantenprov/laravel-blog

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2017-03-27 20:47 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:18:58 UTC


README

This package is under development.

Add the package service provider to the providers array on /config/app.php:

// /config/app.php
'providers' => [
    // Blog Package
    Carawebs\Blog\BlogProvider::class
];

Add the BlogUserTrait to your User model. This sets up Eloquent relationships:

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Carawebs\Blog\Traits\BlogUserTrait;

class User extends Authenticatable
{
    use Notifiable;
    use BlogUserTrait;

}