天天看點

laravel 坑

1.奇怪的路由問題

// 第二條路由candidate/create無效,每次請求隻是重新整理目前頁面
Route::get('candidate/{company_id?}', '[email protected]');
Route::get('candidate/create', '[email protected]');

// 兩條路由調換順序後就正常了
Route::get('candidate/create', '[email protected]');
Route::get('candidate/{company_id?}', '[email protected]');
           

2.

laravel 坑