Я попробовал это, чтобы контроллер мог прочитать параметр:
Код: Выделить всё
$id = Input::get('id');
Вот мой код:
Ссылка на просмотр:
Код: Выделить всё
{{ URL('/lap_spd/tambahspd/'.$items->nosurat.'/'.$items->id )}}
Код: Выделить всё
Route::get('lap_spd/tambahspd/{id}/{nosurat}', function($id, $nosurat){
return redirect()->action(
'lapspdController@tambahuwong', ['id' => $id], ['nosurat' => $nosurat]);
});
Код: Выделить всё
public function tambahuwong($id, $nosurat) {
$id = Input::get('id');
$nosurat = Input::get('nosurat');
$data3 = DB::table('list_nama')
->where('id_nosurat', 'nosurat')
->toSql();
dd($data3);
Подробнее здесь: https://stackoverflow.com/questions/555 ... controller
Мобильная версия