Tag Archives: laravel middleware

Laravel middleware to remove/trim empty white spaces from user input

In this Laravel article i will let you know to create Laravel middleware to remove/trim empty white spaces from user input. Sometimes an user searches for an empty string and get an empty result becauase empty string behave like a character which is corerct but not a good practice for security reason to send user data directly into the… Read More »

Laravel 5 custom middleware for 301 redirection to non index.php url

Since we all know that index.php in the url is not a seo frriendly url. So if we go an application for production we generally optimize web application’s url. So inthis article i will let you know about Laravel 5 custom middleware for 301 redirection to non index.php url. Basically to achieve the url without index.php in laravel we… Read More »