Mutators and Accessors in Laravel
In this article, we’ll go through mutators and accessors of the Eloquent ORM in the Laravel web framework. After the introduction, we’ll go through a handful of examples to understand …
By Nikunj Joshi
In this article, we’ll go through mutators and accessors of the Eloquent ORM in the Laravel web framework. After the introduction, we’ll go through a handful of examples to understand …
Laravel Two-Step Registration: Optional Fields for Country and City Imagine a project where you need to have two-step registration process, with some optional fields in the second step. Let’s build …
Display Featured Products on Homepage in Magento. Please like this video and subscribe to my YouTube channel. The following are the steps to add featured products on homepage. STEP: 1. …
Read More “Display Featured Products on Homepage in Magento”
PHP array_column() Function It is an inbuilt function in PHP. The array_column() function is used to return the values from a single column in the input array. The function returns …
What is the difference between implode and explode function in php? In coding many times we need to convert a string into array and array into string for that we …
Read More “Difference between implode and explode function in php”
Counts how many times a substring occurs in a string in PHP The substr_count() is a built-in function in PHP and is used to count the number of times a …
What is the difference between the sort() function and asort() function in php ? Basically sort() and asort() functions are used to sort the array in php. Sort Array in …
Read More “Difference between sort() function & asort() function in php”
What is the difference between htmlentities() and htmlspecialchars() in PHP htmlentities() Function htmlentities — Convert all applicable characters to HTML entities. The htmlentities() function is an inbuilt function in PHP …
How to get the Methods of in a Class The get_class_methods() function gets the class methods’ names. It returns an array of method names defined for the class specified by …
What are the main error types in PHP and how do they differ? There are three basic types of run time errors in PHP: Notices – Simple, non-critical errors that …