Creating a Neat DateTime Helper Function in PHP

dev.to - submitted by Ricardo Čerljenko

Working with datetime in PHP could be a real pain if you don't take advantage of popular libraries like Carbon. It's all good until you have to convert dates provided on user input into another timezone (eg. UTC) and vice versa. Other example could be that you have to manage various input datetime formats, and sanitize them into a consistent one before saving it to database.

Read more [dev.to]

The value of a good database design

tray2.se - submitted by Patrik Ahlström

You might think that the way your store your data isn't really that important. Well it's more important than you think it is. A good database design just like good clean code is the key to performance, not only for the end user but also for you the developer. A poor database model just like poorly written code will slow you down and furthermore it will slow your database queries down which results in a slow application.

Read more [tray2.se]

Using GitHub Dependabot with a Monorepo

www.csrhymes.com - submitted by Chris Rhymes

GitHub offers a dependabot service that can let you know of any potential security issues with your dependencies and automatically create a Pull Request for you. This works great without any configuration if you have a repo that contains npm, composer or gem dependencies, but you may need additional configuration if your lock files aren’t in the root directory, or in separate directories in the case of a monorepo.

Read more [www.csrhymes.com]

Making Laravel Collection Clone

youtu.be - submitted by Ashish Dhamala

Here, we will be looking at how to make a Laravel Collection clone. We will learn about two interfaces of PHP which will help us access an object as an array and loop through the object, and they are ArrayAccess and Iterable respectively. We will all be implementing some methods like map, filter, reduce and sum.

Read more [youtu.be]