Epormas dashboard repository
Via composer
$ composer require bantenprov/dashboard-epormas:1.0.0
'providers' => array(
...
Bantenprov\DashboardEpormas\EpormasServiceProvider::class,
),
$ 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!');
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",
}
},
....
]
]},
....
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'
}]
},
....
$ composer dump-autoload
$ php artisan migrate --seed
$ npm run dev