“Render vs Pengecualian Laravel Redirect” Kode Jawaban

Respon Laravel mengarahkan ulang

#Method 1 with route name
return redirect()->route('login');

#Method 2 back with input
return back()->withInput();

#Method 2 using a url
return redirect('/home/dashboard');
Ahmed

Render vs Pengecualian Laravel Redirect

report() is used if you want to do some additional logging – send error to BugSnag, email, Slack etc.
render() is used if you want to redirect back with error or return HTTP response (like your own Blade file) directly from Exception class
kinjal suryavanshi

Jawaban yang mirip dengan “Render vs Pengecualian Laravel Redirect”

Pertanyaan yang mirip dengan “Render vs Pengecualian Laravel Redirect”

Lebih banyak jawaban terkait untuk “Render vs Pengecualian Laravel Redirect” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya