我已经使用Laravel Boilerplate开发我的应用程序。除此之外,我已经安装了L5Modular。所以我定义路由就像我的模块Laravel BoilerPlate:定义路线
<?php
Route::group(array('module' => 'test', 'middleware' => ['web','auth'], 'prefix'=>'frontend','namespace' => 'App\Modules\test\Controllers'), function() {
Route::resource('test', 'TestController');
});
内下列但是当我试图访问路线http://localhost/blog/public/test/create它显示404错误。
为什么我的路线没有被访问?有没有定义路线的错误?
Laravel不支持安装在一个子目录开箱即用,你需要自定义'.htaccess'文件。 – apokryfos
你可以请尝试http://localhost/blog/public/index.php/test/create –
你还需要显示'TestController'的内容 –