CG数据库 >> How to Structure Laravel Project

MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz, 2 Ch

Genre: eLearning | Language: English | Duration: 29 Lessons (4h 52m) | Size: 1.28 GB

Basic Laravel is an MVC framework, it’s clear what should be in Model, View and Controller. But what if you have custom logic for processing data before passing it to the view? Where should it be?

In the same Controller method?

Separate private Controller method?

Static function in Model?

Separate class, like Service?

Or, maybe, global helper function without any class?

Also, I’ve heard Repository is a widely-used pattern?

And the list goes on.

Of course, the correct answer is it depends. But depends on what?

This is what I’m gonna talk about in this course.

The goal is to discuss practical examples of structuring larger Laravel applications, various approaches and patterns. We will analyze existing popular open-source projects and their structure.


How to Structure Laravel Project的图片1
How to Structure Laravel Project的图片2

发布日期: 2020-08-20