database migration using code in laravel code example
Example 1: create database from migration laravel for all
php artisan migrate:refresh
php artisan migrate:refresh --seed
Example 2: laravel migrate in production
\Artisan::call('migrate',
array(
'--path' => 'database/migrations',
'--database' => 'dynamicdb',
'--force' => true));