Create Schema with Laravel 5.1

Asked

Viewed 49 times

3

Is there any way I can get Laravel 5.1 itself to create a database as this database does not exist? ( can be either in a table of a master bank or from the same comic book itself... whatever)

1 answer

1


It’ll be something like:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.