bantenprov/dashboard-epormas

Epormas dashboard for dashboard pimpinan application

1.0.0 2017-12-11 13:58 UTC

This package is not auto-updated.

Last update: 2024-04-13 01:24:11 UTC


README

Join the chat at https://gitter.im/dashboard-epormas/Lobby Scrutinizer Code Quality Build Status

Epormas dashboard repository

TO DO :

This Package is part of Dashboard Pimpinan

Install

Via composer

$ composer require bantenprov/dashboard-epormas:1.0.0

1. In your config/app.php add for laravel 5.4:

'providers' => array(
    ...
    Bantenprov\DashboardEpormas\EpormasServiceProvider::class,
),

2. php artisan

$ php artisan dashboard:epormas
$ php artisan vendor:publish --tag=views
$ php artisan vendor:publish --tag=migrations

in your database/seeds/DatabaseSeeder.php add this code in run function

$this->call('EpormasCounterTableSeeder');
$this->command->info('EpormasCounter table seeded!');

$this->call('EpormasCityTableSeeder');
$this->command->info('EpormasCity table seeded!');

$this->call('EpormasCategoryTableSeeder');
$this->command->info('EpormasCategory table seeded!');

routes.js

in your resources/assets/routes.js add this code in const routes

const routes = [{
  path: '/',
  component: resolve => require(['./layout.vue'], resolve),
  children: [
  ....  
  {
      path: 'dashboard/epormas',
      component: resolve => require(['./components/dashboard_epormas.vue'], resolve),
      meta: {
          title: "Dashboard Epormas",
      }
  }, {
      path: 'epormas',
      component: resolve => require(['./components/epormas_list.vue'], resolve),
      meta: {
          title: "Epormas",
      }
  },  {
      path: 'epormas/create',
      component: resolve => require(['./components/add_epormas.vue'], resolve),
      meta: {
          title: "Epormas",
      }
  },  {
      path: 'epormas/:id/edit',
      component: resolve => require(['./components/edit_epormas.vue'], resolve),
      meta: {
          title: "Epormas",
      }
  }, {
      path: 'epormas/:id/destroy',
      component: resolve => require(['./components/destroy.vue'], resolve),
      meta: {
          title: "Destroy",
      }
  },
  ....  
  ]
]},
....

menu.js

in your resources/assets/menu.js add this code

{
    name: 'Dashboard',
    icon: 'ti-bar-chart',
    child: [
    ....
    {
        name: 'Epormas',
        link: '/dashboard/epormas',
        icon: 'ti-angle-double-right'
    },
    ....
  ]
},
....
{
    name: "Data Epormas",
    icon: "ti-files",
    child: [{
        name: 'list Epormas',
        link: '/epormas',
        icon: 'ti-angle-double-right'
    }]
},
....

3. Migrate Database and npm run dev

$ composer dump-autoload
$ php artisan migrate --seed
$ npm run dev

DEMO :

CHANGELOG :