laravel 坑
2016-07-08 11:01
489 查看
1.奇怪的路由问题
// 第二条路由candidate/create无效,每次请求只是刷新当前页面
Route::get('candidate/{company_id?}', 'CandidateController@index');
Route::get('candidate/create', 'CandidateController@create');
// 两条路由调换顺序后就正常了
Route::get('candidate/create', 'CandidateController@create');
Route::get('candidate/{company_id?}', 'CandidateController@index');
2.
// 第二条路由candidate/create无效,每次请求只是刷新当前页面
Route::get('candidate/{company_id?}', 'CandidateController@index');
Route::get('candidate/create', 'CandidateController@create');
// 两条路由调换顺序后就正常了
Route::get('candidate/create', 'CandidateController@create');
Route::get('candidate/{company_id?}', 'CandidateController@index');
2.
相关文章推荐
- workerman结合laravel开发在线聊天应用的示例代码
- 简单对比分析Ruby on Rails 和 Laravel
- Rails Routes中new、collection、member的区别浅析
- laravel安装zend opcache加速器教程
- 使用 PHPStorm 开发 Laravel
- jquery使用on绑定a标签无效 只能用live解决
- 解析php file_exists无效的解决办法
- 跟我学Laravel之请求与输入
- 跟我学Laravel之视图 & Response
- PHP IDE PHPStorm配置支持友好Laravel代码提示方法
- Laravel 5.0 发布 新版本特性详解
- 详解PHP的Laravel框架中Eloquent对象关系映射使用
- 深入解析PHP的Laravel框架中的event事件操作
- IIS启用GZIP压缩js、css无效的原因及解决方法
- 推荐几款用 Sublime Text 开发 Laravel 所用到的插件
- Laravel中使用阿里云OSS Composer包分享
- Laravel 4 初级教程之Pages、表单验证
- Laravel框架表单验证详解
- Laravel框架中扩展函数、扩展自定义类的方法
- Laravel 4 初级教程之安装及入门