This blog is to help you manually login by using a URL with get parameters. As this practice is not secured and can be taken advantage by hackers so use it on your own risk. To make it a bit…
Author: Bhaskar Chaudhary
How to merge Collection in Laravel?
To merge two collection col1 and col2 we use merge() method of collection OR We can just pass those collection while declaring the collection Some Example case Sometimes we need to get different collection from same Database Table depending on…
Get a string after a specific substring by length in MySQl and SQL
For MySql Let us assume a Customers table with a CustomerName Column which contain string of Max Length 200. For Sql Server Let us assume a Customers table with a CustomerName Column which contain string of Max Length 200.
How To Capitalize First Letter Of Each Word In Js ?
By using function: “replace()” is a iterative function calling a regex as first parameter and adding callback function as its second parameter we can achieve this. Regular Expression for Every Word in a String ( /\w\S*/g ) And Callback function…
Dynamic web form validation with predefined rules and messages
Sometimes when we are using same validation rules for a form in different location with different ID’s. To prevent repeating the code and make it more maintainable we define it as a function in one place. That is what this…
Custom Facades in Laravel
Facades are static interface of a class to encapsulate its default arguments. First we need to define a class in app directory like app/CustomClass/NewClass.php Now we need to define a facade for this class Firstly we need to edit AppServiceProvider.php…
How To print \n in C?
As We know \n is used for new line Similarly \t for vertical tab so to print \n just add \ before \n like \\n similarly for \t it will be \\t
Json parsing to add an iterating element by Jquery
To reduce load time and improve user experience we use ajax to get add new element to existing html. let the response be: let the response is saved in var response let the place where response is appended is to…
Creating a DB in MongoDB
It is as simple as calling an URL If you have already installed MongoDB. If Not go-ahead download from here
Node Event Module
Node has a concept of event-driven programming, in which code is written to react rather than be called. Node has an inbuilt event module about which you learn in-depth from here, we will use event listener and event emitter method…