lundi 25 juin 2018

when i am try to redirect to another page in laravel 5.6 then getting error like "Sorry, the page you are looking for could not be found."

Thank In Advance for view my question

I am working on laravel 5.6 . i am making condition with if statement

like

if($value == 5){
   return redirect('Mycon/Home');
}else{
//some thing
}

i am also use use Illuminate\Support\Facades\Redirect; on controller file. My condition work and also redirect to right url mean http://localhost/sample/test/Mycon/Home But After redirect url is right but error show like Sorry, the page you are looking for could not be found.

I am also add function in route file like Route::get('/Home', 'Mycon@Home');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire