前言

  • 独角数卡,打开商品列表出现了ErrorException In GoodsController.php line 95 : Undefined variable: form
1
2
3
4
5
6
7
8
9
ErrorException In GoodsController.php line 95 : Undefined variable: form


#0 app/Admin/Controllers/GoodsController.php(95): Illuminate/Foundation/Bootstrap/HandleExceptions->handleError()
#1 [internal function]: App/Admin/Controllers/GoodsController->App/Admin/Controllers/{closure}()
#2 vendor/dcat/laravel-admin/src/Show.php(673): call_user_func()
#3 vendor/dcat/laravel-admin/src/Support/Helper.php(105): Dcat/Admin/Show->render()
#4 vendor/dcat/laravel-admin/src/Layout/Column.php(100): Dcat/Admin/Support/Helper::render()
#5 vendor/dcat/laravel-admin/src/Layout/Row.php(75): Dcat/Admin/Layout/Column->render()
  • 错误如下

解决办法

  • 更改如下

  • 然后就解决了

  • 看来还是要多看看pull request啊,