setTimeout() error in laravel
In some cases laravel will load blank page with the following error in the firebug
1 2 3 4 |
<script> var siteUrl = 'http://localhost/stemwizard/public/admin/login'; setTimeout(function(){ window.location.href= siteUrl; },1000); </script> |
Answer:This is bevause of usage of get insetead of post in routes.php Route:get(‘your function’);