2
What is the correct way for Laravel 5.6 to redirect another route if it is error 404?
I created the folder Resources/views/errors/ and the file 404.blade.php, and worked right, but do not want to display the error, I want to be redirected to another page.
I did not find this line, I think that in version 5.6 no longer exists. I will keep the same JS. Thanks Wictor!
– Luis Alberto
@Luisalberto and Wictor, this may help clarify a little more: https://answall.com/questions/232812/por-que-minhas-p%C3%a1ginas-de-erro-personalizada-n%C3%a3o-est%C3%a3o-sendo-chamadas/232822#232822 . It’s in that file that Wictor said you can put that JS
– Miguel
Miguel, that’s exactly what I did, but I think I’d be better off using Laravel’s system. Thanks!
– Luis Alberto