Answers for "laravel db::$data"

PHP
1

db::statement in laravel

DB::statement('DROP TABLE users');
DB::statement('ALTER TABLE projects AUTO_INCREMENT=123');
Posted by: Guest on July-27-2020
0

how to set db table type in laravel

Schema::create('users', function (Blueprint $table) {
    $table->engine = 'InnoDB';

    // ...
});
Posted by: Guest on March-06-2021

Browse Popular Code Answers by Language