我在laravel有一个问题,我已经开发了一个系统,它正确地工作了路由,但现在它不工作,任何路由都给我相同的结果错误。
Esta mi archivo app.blade.php
<li>
<a href={{url('home')}} class="dropdown-toggle">
<i class="fa fa-dashboard"></i>
<span class="hidden-xs">Panel</span>
</a>
</li>这是我的web.php文件
Auth::routes();
Route::get('/', function () {
return view('home');
});
Route::get('/home', 'PruebaController@index')->name('home');这是我的控制器文件
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PruebaController extends Controller
{
public function index()
{
return view('home');
}
}php artisan route:list我已经审查了一切,但我没有发现问题,一切似乎都是正确的,我所做的是克隆项目有事情要做。
发布于 2017-10-21 14:09:06
你有view->home.blade.php吗?
发布于 2017-10-22 00:25:56
既然你提到你有cloned the project,我想这跟缓存有关。
试一试
php artisan cache:clear
php artisan config:cache发布于 2017-10-24 10:33:45
在打印$ request、最后一个变量时,我在函数matchAgainstRoutes中跟踪了文件RouteColletion.php的错误
Request {#38 ▼
...
pathInfo: "/ gesis / public / home"
requestUri: "/ gesis / public / home"
baseUrl: ""
basePath: ""
format: "html"
}我留空了,我想这就是为什么,但我不知道为什么我留空了这些变量。
https://stackoverflow.com/questions/46860153
复制相似问题