2017-11-07 15 views

答えて

1

Web.phpルートパスへのアクセス

Route::get('/', '[email protected]')->name('model.index'); 
Route::get('/create', '[email protected]')->name('model.create'); 
Route::get('/edit/{paramerter}', '[email protected]')->name('model.edit'); 

名前ルートパス:直接名前のルートにリダイレクトするには route('model.edit', ['parameter'=> $value])

+1

ありがとう!これはとてもシンプルなので、私はそれを逃した...シンタックスルート( 'model.index')を使用して魔法を働いた:) – envision

0

:パラメータを渡す route('model.index')

を、使用:

return redirect()->route('NAME'); 

という名前のルート、使用へのパスを参照するには、次の

echo route('NAME'); 
関連する問題