laravel collection map

Laravel Collections – map() Method

In this post, we will look at how we can use map() method to perform some action on each element of Laravel Collections. The map method applies a given callback function to…

Read more »
laravel collections wrap and unwrap methods

Laravel Collections – wrap() and unwrap() Methods

In this post, we will look at how wrap() and unwrap() methods can be used when dealing with Laravel Collections. This is a third part of Laravel Collections Series. Laravel Collection…

Read more »
laravel collection make method

Laravel Collections – make Method

Laravel Collections Illuminate\Support\Collection class provides number of static helper functions that help us to create new instance of collection. Static API’s make method creates a new instance of a collection with the provided array. Signature…

Read more »

Laravel Collections – Introduction to Collections

Laravel Collections are one of the most powerful features of Laravel. Basically, collections are PHP arrays but it’s an Object Oriented approach to deal with PHP arrays. Laravel collections offer…

Read more »
javascript object oriented pattern

JavaScript Object Oriented Pattern : Factory Pattern

JavaScript Object Oriented Patterns – Organizing code is going to save us from a lot of pain. Using the features of Object Oriented programming, we can employ certain design patterns to…

Read more »
substring vs substr javascript

Substring vs Substr Javascript

Similar to how the difference between the slice vs splice array methods can be hard to remember, it can also be hard to remember the difference between the substring vs substr JavaScript…

Read more »
laravel policies

Laravel Policies – Controlling Authorization in Laravel

Laravel Policies are a great way to protect actions on your Eloquent Model. Laravel Policies are the part of Laravel Authorization that helps you to protect resources from unauthorized access….

Read more »
custom laravel blade directive

Laravel Custom Blade Directives

Sometimes we need custom controls or custom directives to control the appearance of our views. By the time your application getting scaled, you need something reusable instead of copy pasting…

Read more »
laravel form request

Laravel Form Request Demystified

Laravel provides an incredible way to handle form requests. Laravel form request handling is a very crucial part of any application. By using Laravel for modern web application development we…

Read more »
custom validation rules laravel

Custom Validation Rules in Laravel

In this post, we will look at how we can create custom validation rules for Laravel Form Requests. In our previous post, Laravel Form Request Demystified we looked at how we can…

Read more »