bantenprov/hasil-seleksi

HasilSeleksi

dev-master 2018-05-27 05:11 UTC

This package is not auto-updated.

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


README

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

Hasil Seleksi

Install via composer

  • Development snapshot
composer require bantenprov/hasil-seleksi:dev-master
  • Latest release:
composer require bantenprov/hasil-seleksi

Download via github

git clone https://github.com/bantenprov/hasil-seleksi.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\HasilSeleksi\HasilSeleksiServiceProvider::class,
    //...
];

Edit app/Http/Kernel.php

protected $routeMiddleware = [
    'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
    'can' => \Illuminate\Auth\Middleware\Authorize::class,
    'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
    'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    //...
    'role' => \Laratrust\Middleware\LaratrustRole::class,
    'permission' => \Laratrust\Middleware\LaratrustPermission::class,
    'ability' => \Laratrust\Middleware\LaratrustAbility::class,
    //...
];

Lakukan publish semua komponen :

php artisan vendor:publish --tag=hasil-seleksi-publish

Lakukan auto dump :

composer dump-autoload

Lakukan seeding :


Edit menu resources/assets/js/menu.js

{
    name: 'Dashboard',
    icon: 'fa fa-dashboard',
    childType: 'collapse',
    childItem: [
        //...
        // Passing Grade (Public)
        {
            name: 'Passing Grade (Public)',
            link: '/hasil-seleksi-public',
            icon: 'fa fa-angle-double-right',
        },
        // Passing Grade
        {
            name: 'Passing Grade',
            link: '/dashboard/hasil-seleksi',
            icon: 'fa fa-angle-double-right',
        },
        //...
    ]
},
{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //...
        // Passing Grade
        {
            name: 'Passing Grade',
            link: '/admin/hasil-seleksi',
            icon: 'fa fa-angle-double-right',
        },
        //...
    ]
},

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

//... Passing Grade ...//

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

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Passing Grade (Public)
        {
            path: '/hasil-seleksi-public',
            components: {
                main: resolve => require(['~/components/bantenprov/hasil-seleksi/hasil-seleksi-public/HasilSeleksiPublic.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Passing Grade",
            },
        },
        {
            path: '/hasil-seleksi-public/:id/:track?',
            components: {
                main: resolve => require(['~/components/bantenprov/hasil-seleksi/hasil-seleksi-public/HasilSeleksiPublic.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Hasil Hasil Seleksi",
            },
        },
        //...
        // Passing Grade
        {
            path: '/dashboard/hasil-seleksi',
            components: {
                main: resolve => require(['~/components/views/bantenprov/hasil-seleksi/hasil-seleksi/HasilSeleksiDashboard.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Passing Grade",
            },
        },
        //...
    ]
},
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Passing Grade
        {
            path: '/admin/hasil-seleksi',
            components: {
                main: resolve => require(['~/components/bantenprov/hasil-seleksi/hasil-seleksi/HasilSeleksi.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Passing Grade",
            },
        },
        {
            path: '/admin/hasil-seleksi/:id/:track?',
            components: {
                main: resolve => require(['~/components/bantenprov/hasil-seleksi/hasil-seleksi/HasilSeleksi.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Hasil Hasil Seleksi",
            },
        },
        //...
    ]
},