Laravel Collection - each() Method
In this post, we will learn how to use Laravel Collections each() method to iterate through and perform some actions items in the collection. each() Method The each() method of Laravel Collection takes a callback function and perform...
Share Data in Partial Views using Laravel View Composer
Have you ever been in a situation, where you have to share the same data with multiple views in Laravel application? Surely, you can pass the data using controllers to views, but duplicating the same thing in multiple controllers make...
Page 1 of 1