indralaksmana/modul-ahhprovinsi-satudata
Composer 安装命令:
composer require indralaksmana/modul-ahhprovinsi-satudata
包简介
This package is one of satudata banten modules
README 文档
README
This is one module of Satudata Banten Application
This Package is part of Satudata
Install
Via composer
$ composer require indralaksmana/modul-ahhprovinsi-satudata "1.0.0"
1. In your config/app.php add for laravel 5.4:
'providers' => array( ... Satudata\Ahhprovinsi\AhhprovinsiServiceProvider::class, Maatwebsite\Excel\ExcelServiceProvider::class, ),
'aliases' => [ ... 'Excel' => Maatwebsite\Excel\Facades\Excel::class, ... ],
2. php artisan
$ php artisan satudata:ahhprovinsi
$ php artisan vendor:publish --tag=views
$ php artisan vendor:publish --tag=migrations
$ php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
in your database/seeds/DatabaseSeeder.php add this code in run function
$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
const routes = [ .... { path: '/', name: 'list', component: require('./components/AhhList.vue') }, { path: '/create', name: 'create', component: require('./components/AhhCreate.vue') }, .... ]
3. Migrate Database and npm run dev
$ composer dump-autoload $ php artisan migrate --seed $ npm run dev
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-22