```php
if(!Schema::hasTable('test')){
Schema::create('test', function ($table) {
$table->increments('id');
$table->string('name');
});
}
DB::table('test')->insert(['name'=>'123']);
```
```php
if(!Schema::hasTable('test')){
Schema::create('test', function ($table) {
$table->increments('id');
$table->string('name');
});
}
DB::table('test')->insert(['name'=>'123']);
```