carawebs/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 auto-updated.

Last update: 2024-11-22 00:27:38 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;

}