blog for websites onestartup

0.0.5 2019-02-13 17:02 UTC

This package is not auto-updated.

Last update: 2024-04-19 00:46:31 UTC


README

onestartup/blog is a module blog for websites

Installation

  • Run this in the terminal
composer require onestartup/blog
  • after add the ServiceProvider to the providers array in config/app.php
Onestartup\Blog\BlogServiceProvider::class,
  • Run migration
php artisan migrate
  • add next lines to app/User.php
public function entries()
{
    return $this->hasMany('Onestartup\Blog\Model\Entry', 'user_id');
}
  • run command for publish views
php artisan vendor:publish --provider="Onestartup\Blog\BlogServiceProvider"
  • run command for publish config file
php artisan vendor:publish --tag=config 
  • run serv
php artisan serve
  • test in this route how admin user
http://localhost:8000/admin/blog/entry
  • test in this route
http://localhost:8000/blog