Answer the question
In order to leave comments, you need to log in
How to permanently forward a variable from the controller to the view?
See, I need that when passing a variable to the view from the controller
//тут - переменной email
return view('personalOffice')->with('email', $_POST['email']);
Route::get('/', function () {
if (Auth::check()) {
return redirect(route('personalOffice'));
}
return view('welcome');
})->name('welcome');
Route::view('/personalOffice', 'personalOffice')->middleware('auth')->name('personalOffice');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question