modul-hargaberlaku-satudata
This is one module of Satudata Banten Application, (*1)
This Package is part of Satudata
Install
Via composer
``` bash
$ composer require indralaksmana/modul-hargaberlaku-satudata "1.0.0", (*2)
## 1. In your config/app.php add for laravel 5.4:
``` php
'providers' => array(
...
Satudata\Hargaberlaku\HargaberlakuServiceProvider::class,
),
2. php artisan
``` bash
$ php artisan satudata:hargaberlaku
$ php artisan vendor:publish --tag=views
$ php artisan vendor:publish --tag=migrations, (*3)
in your `database/seeds/DatabaseSeeder.php` add this code in `run` function
``` php
$this->call('MasterKotaSeeder');
$this->command->info('MasterKota table seeded!');
$this->call('MasterProvinsiSeeder');
$this->command->info('MasterProvinsi table seeded!');
in your resources/assets/routes.js
add this code in const routes
``` php, (*4)
const routes = [
....
{
path: '/',
name: 'list',
component: require('./components/PriceList.vue')
},
{
path: '/create',
name: 'create',
component: require('./components/PriceCreate.vue')
},
....
], (*5)
## 3. Migrate Database and npm run dev
``` bash
$ composer dump-autoload
$ php artisan migrate --seed
$ npm run dev