laravel-5 – Create Schema with Laravel 5.1


Is there any way for me to make Laravel 5.1 itself create a database as there is no such database? (It can be either in a table of a master bank or in the list of databases itself… whatever)


It will look like:

 DB::getConnection()->statement('CREATE DATABASE :schema', ['schema' => $schemaName]);
Scroll to Top