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 »

PHP Laravel database seeder example with some sample user data insertion

Before jumping to anything, the first thing that may come to your mind “what is seeder” and “how can we use it in our laravel application”. Here in this article we are going to learn PHP Laravel database seeder example with some sample user data insertion and learn how to use database seeder in laravel. As a developer, while… Read More »

How to disable MYSQL strict mode

Sometimes while working on an application we got an error like “In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column ‘column_name’; this is incompatible with sql_mode=only_full_group_by”. It means this is an issue of mysql strict mode. In the newest version of mysql, it is defaulted on in mysql. So here in this article… Read More »

How to get your local time from UTC/GMT time using Moment.JS with example

Hello friends, in this article i will let you know how to get your local time from UTC/GMT time using Moment.JS. While working on any project as a developer we generally need to work with date manipulation. There are too many procedures  available to manipulate date. But here we will work with moment.js. In this example we will take… Read More »

Create secure password protected web pages and files through htaccess

Hello friends, Today we will learn to create secure password protected web pages and files through .htaccess in easy steps. Sometimes in our project we need to protect web pages and files from an unauthorized person. You will also have seen many websites where their some pages have password protected or by username and password. So anybody who… Read More »