In this section you'll find links submitted by others.

Did you write or stumbled across a blog post, tutorial or video that might be interesting for others?

To be able to submit a link you need to log in first.

Log in

Split assets using Laravel Mix

chrysanthos.xyz - submitted by Chrysanthos

There are cases where you’d like to build different JS/CSS assets for your site, like when you are building a landing page and a user-authenticated dashboard. You wouldn’t want to load all the CSS and JS assets on your landing page would you?

Read more [chrysanthos.xyz]

Creating Your Own Laravel Custom Package: A Step-by-Step Guide

adevait.com - submitted by Filip Josifovski

Packages are a great way to make a bunch of code reusable and easily shareable. You may have already come across many Laravel packages, both official and community-maintained—some of them simple and some very complex. In the following article, you’ll learn most of the fundamental concepts around putting together a Laravel custom package.

Read more [adevait.com]

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]