Creating Schema with Laravel 5.1

3

Is there any way I can make Laravel 5.1 itself create a database as there is no such database? (can be either in a table of a master bank or in the same bd's list itself ... whatever)

    
asked by anonymous 02.12.2015 / 01:59

1 answer

1

It will look something like:

 DB::getConnection()->statement('CREATE DATABASE :schema', ['schema' => $schemaName]);
    
02.12.2015 / 13:57