2017 © Pedro Peláez
 

library vue-blog

Laravel blog content with vuejs support.

image

bantenprov/vue-blog

Laravel blog content with vuejs support.

  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Vue Blog

Join the chat at https://gitter.im/vue-blog/Lobby Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads, (*1)

Laravel blog content with vuejs suport, (*2)

TODO : :

Basic Blog Package

This package is under development., (*3)

Install Laravel :

$ composer create-project bantenprov/tanara:dev-dev htdocs
$ cd htdocs
$ php artisan make:auth

add in layout/app.blade.php after, (*4)

<!-- Scripts -->
<script src="{{ asset('js/app.js') }}"></script>
<script>  var base_url = "{{ url('/') }}";</script>
@stack('script')

Install VueJs :

$ npm install
# latest stable
$ npm install vue
$ npm run dev

Install Vue Blog :

$ composer require bantenprov/vue-blog:"1.0.0"

Add the package service provider to the providers array on /config/app.php:, (*5)

// /config/app.php
'providers' => [

    // Blog Package
    Bantenprov\VueBlog\BlogServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,

];
'aliases' => [
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
];

Add the BlogUserTrait to your User model. This sets up Eloquent relationships:, (*6)

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Bantenprov\VueBlog\Traits\BlogUserTrait;

class User extends Authenticatable
{
    use Notifiable;
    use BlogUserTrait;

}

Change app.js in resources/assets/js/app.js, (*7)

// Vue.component('example', require('./components/Example.vue'));
//
// const app = new Vue({
//     el: '#app'
// });
Vue.component('vue-pagination', require('./components/pagination.vue'));

Artisan command :

$ php artisan vendor:publish --tag=vue_assets
$ php artisan vendor:publish --tag=vue_migrations
$ npm run dev
$ php artisan migrate

The Versions

01/03 2018

dev-master

9999999-dev https://github.com/bantenprov/vue-blog

Laravel blog content with vuejs support.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/03 2018

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/bantenprov/vue-blog

Laravel blog content with vuejs support.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/11 2017

1.0.0

1.0.0.0 https://github.com/bantenprov/vue-blog

Laravel blog content with vuejs support.

  Sources   Download

MIT

The Requires

 

The Development Requires