Almost in all projects, we face this situation where we have a first name and last name in two different fields in the database table…
1 CommentAuthor: Praveen Anaparthi
11+ years of IT industry experience holding a wide range of skill sets and roles with significant work on PHP, Node.js, Python, Ruby, Docker, React.js, Microsoft Azure, Azure DevOps, Windows PowerShell, Shell script, Jenkins, MongoDB, SQL, MySQL, Apache, Nginx. etc. It is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.
Web notifications API was designed to display END user notifications(desktop notifications), which allows alerting the user outside the context of a web page. This API…
Leave a CommentSending Emails is very important requirement of the almost all modern web applications. Sending Emails in Laravel Based applications is very simple because Laravel email…
5 CommentsLaravel’s Request class provides many methods for reading the HTTP request of the current request. One of these function is named ajax(). Using this function…
Leave a CommentHere is the simple quick post about removing specific element from an array using php.In this example we are going to use array_search() function ,…
2 CommentsFor Creating cookies in Laravel we use Cookie::make() method and for reading cookie we use Cookie::get() method. Basically the Cookie::get() method is a wrapper over…
3 CommentsBlade did not provided a way to define variables.But you can extend blade by using extend method as shown below Blade::extend(function($value) { return preg_replace(‘/\@var(.+)/’, ”,…
1 CommentToday i would like to write about Laravel Eloquent’s Query Scopes , Query scopes are allow us to re-use query logic by allowing us to…
Leave a CommentUsing array_map() function is pretty simple in procedural style coding in PHP, while coding in object oriented fashion is also easy but bit tricky. So…
Leave a CommentIn this post, I want to show you some basic tips for redirecting users back to the original destination path or some defined path with…
4 CommentsArray map is one of the interesting PHP’s array function. But it will not work with multidimensional arrays as expected.So in this post, I would…
3 Commentsgit fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the master branch to what you…
Leave a CommentBy extending Eloquent we can inherits all of the existing functionality to our model. By Extending newly created Base Model we can inherits custom methods…
2 CommentsHere is the simple PHP function for testing given data is null or empty string. function IsNullOrEmptyString($data){ return (!isset($data) || trim($data)===”); }
Leave a CommentWe can achieve this in several way , but i would like to share this below approach because it is very simple,easy and more readable.…
1 Comment