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

Laravel DDD - Getting started with DDD in Laravel

www.juststeveking.uk - submitted by Steve McDougall

In a typical Laravel application we are very used to doing things in a certain way, by the book as they say. However there comes a point in the applications lifetime that it is going to be easier to start looking to split this code into Domains so that we can logically group our code. Our first step is to decide what is our domain code and what is our application code, and the simplest way to do that is to keep anything that can be directly accessed from the outside world (as in web, cli or API) inside of the App namespace. From here we can start to define our domain boundaries, try to think of these in broader terms that just “A post must be in the Post domain” as you aren’t solving any problems at that point.

Read more [www.juststeveking.uk]

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]