bantenprov/vue-user

Nama user

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 3

Language:Vue

dev-master 2018-05-20 07:18 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:51:59 UTC


README

Join the chat at https://gitter.im/vue-user/Lobby Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

User

User

Install via composer

  • Development snapshot
$ composer require bantenprov/user:dev-master
  • Latest release:

Download via github

$ git clone https://github.com/bantenprov/user.git

Edit config/app.php :

'providers' => [

    /*
    * Laravel Framework Service Providers...
    */
    Illuminate\Auth\AuthServiceProvider::class,
    Illuminate\Broadcasting\BroadcastServiceProvider::class,
    Illuminate\Bus\BusServiceProvider::class,
    Illuminate\Cache\CacheServiceProvider::class,
    Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
    Illuminate\Cookie\CookieServiceProvider::class,
    //....
    Bantenprov\User\UserServiceProvider::class,

Publish database seeder :

$ php artisan vendor:publish --tag=user-seeds

Lakukan auto dump :

$ composer dump-autoload

Lakukan seeding :

$ php artisan db:seed --class=BantenprovUserSeederUser

Lakukan publish component vue :

$ php artisan vendor:publish --tag=user-assets

Tambahkan route di dalam file : resources/assets/js/routes.js :

{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/admin/user',
            components: {
                main: resolve => require(['~/components/bantenprov/user/User.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "User"
            }
        },
        {
            path: '/admin/user/create',
            components: {
                main: resolve => require(['~/components/bantenprov/user/User.add.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "User"
            }
        },
        {
            path: '/admin/user/:id',
            components: {
                main: resolve => require(['~/components/bantenprov/user/User.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "User"
            }
        },
        {
          path: '/admin/user/user-add-role/:id',
          components: {
              main: resolve => require(['~/components/bantenprov/user/User.AddRole.vue'], resolve),
              navbar: resolve => require(['~/components/Navbar.vue'], resolve),
              sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
          },
          meta: {
              title: "User"
          }
        },
        {
            path: '/admin/user/:id/edit',
            components: {
                main: resolve => require(['~/components/bantenprov/user/User.edit.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "User"
            }
        },
        //== ...
    ]
},

Edit menu resources/assets/js/menu.js

{
    name: 'Dashboard',
    icon: 'fa fa-dashboard',
    childType: 'collapse',
    childItem: [
        //== ...
         {
            name: 'User',
            link: '/admin/user',
            icon: 'fa fa-angle-double-right'
        }
        //== ...
    ]
},
{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //== ...
        {
            name: 'User',
            link: '/admin/user',
            icon: 'fa fa-angle-double-right'
          }
        //== ...
    ]
},