Category: Laravel
-
How to handle Collections outside Laravel
One thing when working with Laravel that I have used the most, are the Laravel Collections. They come handy when you need to manipulate and filter arrays. Collections basically are a wrapper for working with arrays of data. Collections provide a lot of powerful and useful methods to manipulate the arrays. You can check them…
-
Carbon – The Only API You Need Handling Date and Time
Dealing with date and time in PHP can be frustrating, time consuming and complicated. Adding, subtracting dates, facing formatting issues, dealing with timezones, all can be a lot, especially if just you want a simple task with dates done. Here can help Carbon. Carbon is a simple PHP package that extends the PHP DateTime class…