$ php artisan make:model Brand -m  //创建模型并生成迁移文件

$ php artisan migrate  //运行迁移

$ php artisan admin:make BrandController --model=App\Brand  //创建关联Brand模型的控制器

 

相关文章:

  • 2019-02-12
  • 2021-10-29
  • 2021-09-17
  • 2021-10-26
  • 2022-01-02
  • 2021-08-24
  • 2021-06-30
  • 2021-10-21
猜你喜欢
  • 2021-06-15
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-02-14
相关资源
相似解决方案