Structuring Laravel Projects: 2024 Edition

preview_player
Показать описание
We updated and re-released the older course, and I will summarize the main idea in this video.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Always good to provide real world examples from open source projects. Gives us context on how it's used in the real world. Too often tutorials only show concepts in the abstract.

PoweredMinecart
Автор

This videos are advanced Laravel tutorials. I ❤ the introductory mode .

kwameadoko
Автор

Respect from Pakistan.
I have sensed you are way smarter than usual course creator, you knoe how to market by solving pain points of customers.
In this example, you will wi hearts by "just" renaming course titles along with course cointent itself.
Povilas = Hard work and smart work.

nabeelyousafpasha
Автор

Thanks for revisiting and really appreciated your time and loving laravel, and PHP 😍 I have been following you and you always updating things when its upgraded...

LoganathanNatarajanlogudotcom
Автор

Great update, this makes your courses priceless! Thank you...

pierdocks
Автор

Love that the courses are being updated but I'll miss the video courses

dave
Автор

Text courses are definitely the way to go. I like the fact that when I run into an issue or am confused about something, I'll remember it was talked about in the course and with it being text, I can easily go back and find it. With videos, not so much. On the same topic, maybe it'd be possible to add a "Search within Course" feature to LD? Great work as always, Povilas and team!

JJASMR
Автор

Aciu Povilai tavo video labai isskirtiniai bei daug ko pamokantys. taip ir toliau :)

andriusgeciauskas
Автор

This is the way I structure: from routes, going to controllers.
Controller have to do something then I call action class always with DTO as parameters

Action class is the main executor, it can call other actions, but call also service class which is responsible for some computations.
Action always have try catch block which throws custom ActionnameException (there’s an error executing user creation)

To handle db, I use a class called Repository which has two methods.
command() which returns an instance of Command, queries() which return instance of Queries
Both class have methods to deals with Eloquent commands and queries.
If tomorrow I want to use another db, I just create two other classes Command and Query with same methods like other (helped by interface)

jacquesmatike
Автор

Hello Mr. Povilas, this course must be great, but I learn better from a video course, have you thought about making it a video course, or making other courses in video format?

marekmiklusek
Автор

Povilas, in a situation where you'd have methods that differ from laravels controller conventional methods, for example, an export or even a multi-delete method, where would you suggest putting those in the project?
I'm having trouble figuring out how to organize my project in a situation like this.

alaneugenio
Автор

Which documentation did u use on this demo please

davidnorris
Автор

You realy need a designer for your courses thumbnails🙂

akhelijmohamed
Автор

I think you complicating the codebase by creating many files unnecessarily. This way no suitable for all kind of project, the seperation of concern is wasting time by wasting time to seperate and jumping many files on vscode to do a task its time to think out of the box for old php developers.
Just try nodejs express and change the way of thinking.
Many old php developers are blindly following some rules or principles (like solid..) without any benefit and make it more complicating thins.
Same state in laravel, making a problem (many bloatware file like config files seperated by seperation of concern principle) and introduced a new version (11) as the solution 😂

fasterisq.m