run migration via controller laravel code example
Example 1: laravel create db table
php artisan make:migration create_users_table
Example 2: laravel migrate in browser
\Artisan::call('migrate',
array(
'--path' => 'database/migrations',
'--database' => 'dynamicdb',
'--force' => true));