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?
How to Structure Laravel Project
How to Structure Laravel Project is a 29-lesson 4 hours 51 minutes self-paced course by LaravelDaily. Basic Laravel is an MVC framework, it’s clear what should be in Model, View and Controller.
Course facts
- Lessons
- 29
- Duration
- 4 hours 51 minutes
- Level
- All levels
- Language
- English
- Updated
- Instructor
- LaravelDaily
- Price
- Premium
- 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.
Important notice: this course won’t be about design patterns. So fancy keywords like Singleton, Factory, Adapter, Repository etc will be used only when appropriate.
What I will try to do is focus on the practical side: folders, classes and methods, and not on how that pattern actually is called in theory. In reality, every project is actually a mix of patterns, and developers don’t even know how they’re called.
Who teaches How to Structure Laravel Project? LaravelDaily
LaravelDaily is the long-running PHP / Laravel teaching brand of Povilas Korop, one of the most prolific Laravel content creators on the open web. The site has been publishing daily Laravel content for over a decade and now operates a paid course catalog plus the LaravelDaily YouTube channel and a popular weekly newsletter.
The CourseFlix listing carries five LaravelDaily courses covering Laravel project structure, REST API construction, advanced Eloquent ORM patterns, SOLID-principles application in Laravel, and the Laravel + Vue full-stack stack. Material is paid and aimed at Laravel developers ready to move past the framework basics into the patterns that show up in real production codebases.
What lessons are included in How to Structure Laravel Project?
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 1 | Use More Eloquent: Accessors/Mutators, Scopes, Observers & "Magic" Methods Demo | 10:10 | |
| 2 | Controllers and Routes: Where to Put "Extra" Methods? | 08:54 | |
| 3 | Structuring Blade Files: @extends, @yield and Other Commands | 13:18 | |
| 4 | Custom Base Controllers and Base Models | 05:14 | |
| 5 | Configuration: Never Use env() Directly in Controllers/Models | 05:27 | |
| 6 | Form Request Classes for Validation | 04:36 | |
| 7 | User Notifications: Stop Using Mail::send() | 05:51 | |
| 8 | Jobs, Queues and Scheduling Tasks | 05:05 | |
| 9 | Events and Their Listeners | 07:16 | |
| 10 | API Resources for Data Transformation | 09:18 | |
| 11 | Global Helpers, External PHP Classes, Autoloading and PSR-4 | 06:53 | |
| 12 | 1. Single-Responsibility Principle | 06:36 | |
| 13 | 2. Open-Closed Principle | 11:37 | |
| 14 | 3. Liskov Substitution Principle | 04:23 | |
| 15 | 4. Interface Segregation Principle | 05:18 | |
| 16 | 5. Dependency Inversion Principle | 04:44 | |
| 17 | Repositories: to Use or Not to Use? | 09:12 | |
| 18 | When/How to Use Service Classes? | 06:36 | |
| 19 | Traits: Good Practice or Last Resort? | 04:51 | |
| 20 | Dependency injection in PHP and Laravel | 06:31 | |
| 21 | Adapter, Strategy, Factory and Other Fancy Words | 05:29 | |
| 22 | Wait, What About Unit Testing? | 05:35 | |
| 23 | Create Your Own Laravel Package | 09:20 | |
| 24 | Laravel Modules: Package by Nicholas Widart | 07:03 | |
| 25 | Review: Akaunting Open-Source Project Structure | 40:51 | |
| 26 | Review: Laravel.io Community Portal Structure | 12:03 | |
| 27 | Review: MonicaHQ - Personal CRM Project Structure | 41:55 | |
| 28 | Public Website + Adminpanel: Reusing Classes and Features | 12:16 | |
| 29 | Refactoring Big Controller Into Various Classes/Methods | 14:55 |
Get instant access to all 28 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.
Learn more about subscriptionWhat courses are similar to How to Structure Laravel Project?
-
Updated 2y agoRoles and permissions in Laravel
By: CodecoursePowerful role and permission checking doesn't need to be complicated. Let's build our own solution, including custom blade directives and middleware.1h 7m -
Updated 2y agoLaravel 10 Build Complete Hotel Booking Reservation System
By: UdemyWelcome to the course "Creating a Hotel Booking System on Laravel 10"! In this course.41h 7m5/5 -
Updated 2y agoLaravel From Scratch Course | Build A Job Listing Application
By: Brad TraversyLearn Laravel from scratch by creating and deploying a full-fledged job listing site that includes authentication, authorization.13h 20m5/5 -
Updated 2y agoStart with TALL: Use Tailwind, Alpine, Laravel & Livewire
By: UdemyGet ahead of the competition and start with the TALL stack, made up of Tailwind CSS, Alpine.js, Livewire, and Laravel that will completely dominate the world of4h 17m -
Updated 2y agoLaravel Backends for Vue.js 3
By: Vue SchoolVue has held a special place in the front-end for Laravel developers since 2015. It started when the Laravel creator Taylor Otwell tweeted: "Learning @vuejs bec3h 44m -
Updated 2y agoLet's Build a Go version of Laravel
By: UdemyLaravel is one of the most popular web web application frameworks in the PHP world, and with good reason. It's easy to use, well designed, and lets developers w19h 22m -
Updated 2y agoVue 3, Nuxt.js and Laravel: A Practical Guide
By: UdemyLearn how to create 3 different apps with Vue 3, Nuxt.js and Laravel. The first app will be an Admin app using Vue 3 Composition API The second app will be an I10h 17m5/5 -
Updated 2y agoSelf-Made SaaS Course
By: Andrew SchmelyunLearn how to build a full SaaS app from idea to launch. This course walks you through each step in clear, simple terms.5h 19m
More courses by LaravelDaily
-
Updated 2y agoVue.js + Laravel: CRUD with SPA
Master Vue.js with Laravel to build a single-page application. Learn SPA routing, components, and Axios to boost your full-stack skills.1h 50m -
Updated 2y agoSOLID Code in Laravel
Want to get a Senior Laravel developer position? You probably need to master software design principles, like SOLID.1h 46m -
Updated 2y agoLaravel Eloquent: Expert Level
After this course, you will become expert in creating relationships, querying data effectively and using less-known Eloquent features.3h 46m -
Updated 2y agoHow to Create Laravel API
Everyone now is searching for API developers, just look at the Laravel jobs or freelance offers. So, in this course, you will learn how create APIs with Laravel1h 40m