primalbase / laravel-migrate-build
从Google表格中构建migrate:build。
0.0.9.5
2016-03-18 02:28 UTC
Requires
- php: >=5.4.0
- asimlqt/php-google-spreadsheet-client: 2.3.*
- google/apiclient: 1.1.*
- illuminate/support: 4.2.*
README
仅支持laravel 4.*
0.0.9版本仅支持*.json
使用*.p12时,使用0.0.8.0分支
composer
composer require primalbase/laravel-migrate-build
app.php
'providers' => array( 'Primalbase\Migrate\MigrateServiceProvider', );
发布配置文件
$ php artisan config:publish primalbase/laravel-migrate-build
config/packages/primalbase/laravel-migrate-build/config.php
'client_key_path' => GoogleClientKeyPath(*.json) 'spread_sheet_name' => GoogleSpreadsheet SheetName, // Sheet availability check // Default A1 = 'テーブル定義書' 'available_sheet_check' => [ 'col' => 1, 'row' => 1, 'value' => 'テーブル定義書', ],
如何使用
php artisan migrate:build # show all available tables php artisan migrate:build --all # build all migration files php artisan migrate:build users roles # build migration files
生成的todatabase/migrations