天天看点

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 坑