Schema::connection('usertable')->create('test', function ($table) {
         $table->increments('id');
         $table->string('name');
 });

  

'usertable'自己配置的数据库名称。
'test'要创建的数据表名称

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-06-30
  • 2021-09-19
猜你喜欢
  • 2022-01-15
  • 2019-02-12
  • 2021-10-27
  • 2021-06-15
  • 2021-04-02
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案