我正在爲ecom網站開發流明REST API。突然我的應用程序崩潰。我已經更新了我的作曲家和所有東西。但是我找不到錯誤在哪裏。但它只在控制器文件中顯示。 錯誤: ReflectionException in Container.php line 749:Class App\Http\Controllers\App\Http\Controllers\SubcatController does not
我期待有索引路線上的可選參數,像這樣: $app->get('/{name?}', function ($name) {
//Do Something here
});
我基本上要檢查,看看是否有提供的參數。如果是這樣返回一個特定的視圖,如果沒有返回標準的索引視圖。對於我的生活,我無法實現它,更可能做一些愚蠢的事情!任何幫助將不勝感激!