How to retrieve a single row/column from a table in Laravel 5
Let’s create a first method in laravel 5
Let’s create a first method in laravel 5
The echo() function outputs one or more strings. Note: The echo() function is not actually a function, so you are not required to use parentheses with it. However, if you want to pass more than one parameter to echo(), using parentheses will generate a parse error. Example Output
In this tutorial i will show you how to subtract one year in current date using PHP. Many project need this type speciality so, let’s start in code so you are easily understand how to subtract one year. PHP Code And if you like this tutorials please share it with your friends via Email or […]
The array_pad() function is used to padding (insert) a specified number of elements, with a specified value, into an array. Tip: If you assign a negative size parameter, the function will insert new elements BEFORE the original elements (See example below). Note: This function will not delete any elements if the size parameter is less […]
The chop() function is used to remove the whitespaces and other predefined characters from the right side of a string. This function is an alias of rtrim() function. Example Output
MailChimp is an email marketing service, helps to manage the subscribers of your website. MailChimp provides an easy way to integrate email signup form in your website and send the email newsletter to the subscriber. Code
The array_replace_recursive() function replaces the values of the first array with the values from following arrays recursively. Tip: You can assign one array to the function, or as many as you like. Note: If you do not specify a key for each array, this function will behave exactly the same as the array_replace() function. Parameter […]
In this tutorial, we are going to implement the shopping cart functionality in laravel 5 and use package. The package project is on GitHub LaravelShoppingcart. Let’s implement a practical example of an e-commerce website that has shopping cart functionality. To be clear, we will be using an existing composer package that already has shopping cart […]
Have you ever seen a URL which looked like www.example.com/page.php?mode=1&style=red? Well, this page is being passed variables and their values through the query string, here the variables mode and style are being passed, with values 1 and red respectively. The question mark ?indicates the start of the query string and the ampersand, &, symbol separates variable=value assignments. The page is then able to read these variables and […]
QR (Quick Response) code used to read your data in your smart devices for ease. If you have a visiting card and want to add name, email and mobile number in you mobile its hart to type if there is a QR code of contact added on that card then you can easily add that […]