What is the difference between a session and cookies?
Difference between cookies and session is : Cookies stores the information on client browser and session stores the information on server. session and cookies are used to store the information.
Difference between cookies and session is : Cookies stores the information on client browser and session stores the information on server. session and cookies are used to store the information.
There are 2 way to configure username and email in git. Globally Local (Repository basis) Set Username and email globally. Set username and email locally. Switch to the repository for which you want to configure.
If you want to log an existing user into your laravel application, There are various methods available we will discuss them one by one. To login the user manually in Laravel you need to follow the simple steps below for login. Step 1. Fetch the user from the DB which you want to logging In… Read More »
All of the above are called operators. Operator is a string which instructs PHP to perform given action. = is called assignment operator. It is used for assign value to a variable. It will assign value left to the variable. == is called comparison operator. Double equal (==) is used to compare operands on both… Read More »
To log a query in laravel there are multiple methods available. I am going to share one of the method log query in laravel. Why we have required to log queries? Sometimes we are not getting correct results when we are running our application. Sometime not able to figure out issue. We have requirement to… Read More »
If you want to know the PHP version you are running through the command line, you need to just type in the command the following line. It will give you the current php version of your system which is currently using and output of PHP version like this (not exactly, depends on your version)
empty() function determines whether given variable is empty and also used for checking variable is set or not. Variable is said to empty if it is not set or value is false. empty values can be : 0 “” or “0” 0.0 (0 float value) FALSE empty array() NULL Reference : http://php.net/manual/en/function.empty.php
Outputs or returns a parsable string representation of a variable. It will gives you structured information about the given variable. Syntax : $expression – The variable you want to export.$return – This is optional. If it is used and set to true then it will return the variable representation instead of outputting it else it… Read More »
If you have JSON type columns in your database and want to run query on JSON type field. You can use the following query. In the above query <json_column> must be replace by your column name. $.id and $.response contains the JSON key of your columns. You can use for multiple values also. For example… Read More »
From the laravel official Laravel includes a variety of global “helper” PHP functions. Many of these helper functions are used by the framework itself; however, you are free to use them in your own applications if you find them convenient. Helpers are pre built utility functions in laravel which we can use directly without any… Read More »