Route::group(array('before' => 'guest'), function()
{
// home
Route::get('/', array('uses' => '[email protected]', 'as' => 'home'));
Route::get('home', array('uses' => '[email protected]', 'as' => 'home'));
Route::get('/user/create', array('uses' => '[email protected]', 'as' =>'getCreate'));
Route::get('/user/login', array('uses' => '[email protected]', 'as' =>'getLogin'));
Route::group(array('before' => 'csrf'), function()
{
Route::post('/user/create', array('uses' => '[email protected]', 'as' => 'postCreate'));
Route::post('/user/login', array('uses' => '[email protected]', 'as' => 'postLogin'));
});
});
我想在我的master.blade.php文件添加链接脚本文件,如下
<link rel="stylesheet" href="css/bootstrap.min.css">
这将在URL正常工作:
本地主机/公共
,但如果我想查看我的网页/用户/登录,然后启动脚本是不工作... 但是,如果我指定的环节
<link rel="stylesheet" href="../css/bootstrap.min.css">
则引导脚本会在适当/用户/登录工作 但它会在链接没有前缀
张贴在这里装载引导CSS和JS – Laurence 2015-02-09 10:46:18
重写你的问题..... – itachi 2015-02-09 10:57:47