bantenprov/pendaftaran-wizard

Pendaftaran Wizard

dev-master 2018-05-01 11:28 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:21:17 UTC


README

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

Install via composer

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

Download via github

$ git clone https://github.com/bantenprov/pendaftaran-wizard.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\PendaftaranWizard\PendaftaranWizardServiceProvider::class,

Lakukan auto dump :

$ composer dump-autoload

Lakukan publish component vue :

$ php artisan vendor:publish --tag=pendaftaran-wizard-assets

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

{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/admin/pendaftaran-wizard/create',
            name: 'pendaftaran-wizard',
            components: {
                main: resolve => require(['./components/bantenprov/pendaftaran-wizard/PendaftaranWizard.add.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Formulir Pendaftaran"
            }
        },
         
        //== ...
    ]
},

Edit menu resources/assets/js/menu.js

{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //== ...
        {
        name: 'Formulir Pendaftaran',
        link: '/admin/pendaftaran-wizard/create',
        icon: 'fa fa-angle-double-right'
        },
        //== ...
    ]
},

Tambahkan components resources/assets/js/components.js :

//== Pendaftaran Wizard
 
import PendaftaranWizardAdminShow from './components/bantenprov/pendaftaran-wizard/PendaftaranWizardAdmin.show.vue';
Vue.component('admin-view-pendaftaran-wizard-tahun', PendaftaranWizardAdminShow);