Answers for "creating custom database"

PHP
0

creating custom database

use Illuminate\Support\Facades\DB;

// Connection name = `mysql` for me, adjust as suits for you
DB::connection('mysql')->statement("CREATE DATABASE ?", [$this->database]);
// Simply written
DB::connection('mysql')->statement("CREATE DATABASE my_new_db");
Posted by: Guest on August-09-2021

Code answers related to "creating custom database"

Browse Popular Code Answers by Language