primalbase / laravel-migrate-build
migrate:build from Google spreadsheet.
Installs: 1 077
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- asimlqt/php-google-spreadsheet-client: 2.3.*
- google/apiclient: 1.1.*
- illuminate/support: 4.2.*
README
supported only laravel 4.*
0.0.9 support only *.json
*.p12 use 0.0.8.0 branch
composer
composer require primalbase/laravel-migrate-build
app.php
'providers' => array( 'Primalbase\Migrate\MigrateServiceProvider', );
publish config file
$ 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' => 'テーブル定義書', ],
How to use
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
generated todatabase/migrations