0
我的路線是由於某種原因不能工作,我不知道爲什麼。路線不工作laravel 5.2
我的按鈕鏈接和路線。
<a class="btn btn-primary" href="{{url('toernooi/'. $toernooi->id . '/spelers/test')}}">
<span class="glyphicon glyphicon-print" aria-hidden="true"></span>
Export Excel
</a>
Route::group(['middleware' => ['web', 'auth.accepted']], function() {
Route::get('toernooien/{id}/inschrijven', '[email protected]');
Route::group(['middleware' => ['web', 'auth.admin']], function() {
Route::get('toernooien/{id}/spelers', '[email protected]');
Route::get('toernooien/{id}/spelers/test', function() {
echo "test";
});
Route::resource('toernooien', 'ToernooiController');
Route::get('users/{id}/updateaccepted', '[email protected]');
Route::get('users/{id}/updatenotaccepted', '[email protected]');
Route::resource('users', 'UsersController');
Route::get('users/{id}/destroy', '[email protected]');
Route::resource('toernooien', 'ToernooiController');
});
Route::get('/home', '[email protected]');
Route::resource('/toernooien', 'ToernooiController', ['only' => ['index', 'show', ]]);
我試圖把路線在routes.php文件更多的地方。
似乎沒有任何工作。
哦,我的上帝完全沒有看到我是愚蠢的謝謝。 – Rubberduck1337106092