Код: Выделить всё
Route::get('/route-path', 'Client\SomeController@someMethod')->name('MyRouteName');
Код: Выделить всё
public function someMethod(Illuminate\Http\Request $request)
{
$field_1 = $request->f1;
$field_2 = $request->f2;
return view('my_view', compact('field_1', 'field_2'));
}
Код: Выделить всё
$request = new Illuminate\Http\Request();
$request->request->add([
'f1' => 'value_1',
'f2' => 'value_2',
]);
return redirect()->route('MyRouteName', $request);
Я пишу большую часть кода и на данный момент не могу протестировать.
Подробнее здесь: https://stackoverflow.com/questions/789 ... t-possible
Мобильная версия