آموزش لاراول 5.7 از پایه

Laravel 5.7 From Scratch

مجموعه "Laravel from Scratch" از سال 2013 به منبع اصلی آموزش برنامه نویسان تازه وارد تبدیل شده است. بنابراین، همانطور که حدس میزنید، ما برای این که بتوانیم جدیدترین مطالب را پوشش بدهیم، دوره ها را به صورت مداوم به روز رسانی مینماییم. برای پوشش تغییرات لاراول 7 نیز، ما تمام ویدئو ها را مجددا از نو ضبط کرده ایم. بنابراین تمامی تکنیک های برنامه نویسی بهینه گردیده و تمامی مثال ها بروز رسانی شده اند. امیدارم که از این دوره لذت ببرید.

ضمنا، اگر شما به تازگی با لاراول آشنا شده اید، بدانید که قرار هست به شدت از لاراول لذت ببرید. اگر شما برای یادگیری آماده هستید، من هم آماده ام تا تمام دانش خود را به شما انتقال دهم.

سطح مبتدی 38 جلسه آموزشی 06:32:00 ساعت
قسمت 1

The Laravel Sell

Presumably, if you're watching this series, you've already made the decision to embrace all that Laravel has to offer. However, if you're still on the fence, give me just a moment to sell you on why I believe Laravel is the best framework choice in t...

قسمت 2

Initial Setup Requirements

Like any modern PHP framework, you'll need to install a few prerequisites to prepare for Laravel. Don't worry: this is a one-time job. Stick with me, and we'll get through it quickly. We'll first install Composer, make it available system-wide, and t...

قسمت 3

Basic Routing

When learning a new framework, one of your first tasks is to determine how routing is handled. Or in other words, when I visit a particular URL in the browser, how does my framework route that URL to the necessary logic? Let's review the basics in th...

قسمت 4

Blade Layout Files

When constructing your views, you're not limited to basic PHP. Instead, you can use Blade: Laravel's powerful templating engine. We'll talk about Blade more in the future, but for now, let's leverage it to create a layout file to reduce duplication a...

قسمت 5

Sending Data to Your Views

You'll often need to pass data to your views. Perhaps it's a collection from the database, or maybe a flash message to confirm a particular user action. Let's review how easy this is to do.

قسمت 6

Controllers 101

So far, we've handled all route logic through a closure in our routes/web.php file. This is an excellent choice in some cases; however, I think you'll find that the majority of your projects will require a bit more structure. Let's learn how to migra...

قسمت 7

Databases and Migrations

Let's move on to the fun part: connecting to our database. This lesson will introduce a number of new concepts, so pay close attention. We'll first review environment files. This is where we can store important keys, passwords, and configuration sett...

قسمت 8

Eloquent, Namespacing, and MVC

Now that we understand how to create a new database table using a migration class, let's now query that data with Eloquent. As part of this, we'll do a quick recap of basic namespacing and MVC workflow.

قسمت 9

Directory Structure Review

If you don't mind, let's take ten minutes to quickly review the directory structure that you'll encounter with each new Laravel install. While some of these concepts are currently a bit above our pay grade, it's important that we at least have a basi...

قسمت 10

Form Handling and CSRF Protection

In this lesson, we'll review a basic workflow for submitting form data to our server. In the process, however, we'll be forced to address a new concept: CSRF (Cross-Site Request Forgery). CSRF refers to an attack that secretly forces a user to unwitt...

قسمت 11

Routing Conventions Worth Following

You'll find that many Laravel applications follow a common convention when it comes to routing. In this lesson, we'll review resourceful routing, extended controller generation, and recommendations for how to organize your controllers.

قسمت 12

Faking PATCH and DELETE Requests

Browsers don't yet understand PATCH and DELETE request types for your forms. To get around this limitation, we'll use a bit of trickery to instruct Laravel which HTTP verb to assume.

قسمت 13

Form Delete Requests

Let's review the homework solution from the previous lesson. To delete an existing project, we'll need to create a second form that sends a DELETE request to the necessary endpoint.

قسمت 14

Cleaner Controllers and Mass Assignment Concerns

It's important that you set aside time to review and improve the code you've written. With that in mind, let's return to our ProjectsController class and review how we might improve and simplify the code. In doing so, this will give us the chance to...

قسمت 15

Two Layers of Validation

When it comes to user-provided data, always take an approach of "guilty until proven innocent." With that in mind, we'll add two layers of validation: client-side and server-side. This will give us maximum assurance that we're receiving the correctly...

قسمت 16

Your First Eloquent Relationships

Eloquent ships with a handful of relationship methods to make the process of performing complex SQL queries as simple as calling a method. Let's extend the feature-set of our website to allow for custom per-project tasks. This will give us the oppor...

قسمت 17

Form Action Considerations

It's important to set aside an appropriate amount of time to consider your form endpoints. In this lesson, we'll review two common conventions you'll encounter in the wild.

قسمت 18

Create New Project Tasks

To add new tasks to our project page, we'll need to construct another form. This will give us the chance to once again discuss URI naming conventions, as well as basic encapsulation techniques.

قسمت 19

Better Encapsulation

Let's talk about encapsulation a bit more. "Encapsulation" refers to the act of hiding values and state inside of a class. So with that in mind, let's review our controller and review in which areas we might improve encapsulation and flexibility.

قسمت 20

When in Doubt

Extra Credit! When in doubt, create a new controller and return to REST. This is a technique that I've reached for countless times over the years. Let's discuss what I mean by this, and what it might look like in our current demo.

قسمت 21

Core Concepts: Service Container and Auto-Resolution

It's important that we take time to review the core concepts behind the Laravel framework. First up is two scary, but vitally important terms: service container and auto-resolution. Together, these two create the perfect one-two punch for your depend...

قسمت 22

Core Concepts: Service Providers

Now that you have a better understanding of Laravel's service container, we can move on to our second core concept: service providers. These classes are responsible for registering and bootstrapping a component with the Laravel framework.

قسمت 23

Core Concepts: Configuration and Environments

Our next core concept focuses on configuration. Luckily, Laravel makes environment-specific settings (development, testing, production, etc.) a breeze to setup and reference.

قسمت 24

A Full Registration System in Seconds

Laravel includes a robust registration and authentication system out of the box. Run a single Artisan command, and, bam, you're ready to go!

قسمت 25

Core Concepts: Middleware

Our next core concept is middleware. Think of middleware like layers of an onion. As a request enters your application, it travels through these layers, one by one. Each layer (or middleware) has the opportunity to perform some kind of operation. It...

قسمت 26

You May Only View Your Projects

Now that you understand authentication and middleware, we can apply this new learning to our "projects" demo. At the moment, you can view and modify any project in the database. In real life, of course, your access should be limited to only the proje...

قسمت 27

Authorization Essentials

Laravel includes a powerful Gate component for authorizing your users. Wouldn't it be nice if your authorization logic read like a readable sentence? Well, we can do that very easily!

قسمت 28

Simpler Debugging With Laravel Telescope

Laravel Telescope is a first-party package to assist with debugging and monitoring your application. For anything other than quick throwaway projects, I highly recommend that you pull this in.

قسمت 29

Don't Forget Readability

Before we move on to eventing, let's take another quick stroll through our main ProjectsController to review readability. Are there any places where we can make the code more clear?

قسمت 30


We spoke briefly about sending email with Laravel in a previous episode, but let's dedicate this full lesson to the topic. In addition to the basic workflow for generating Laravel mailables, we'll also discuss two methods for reviewing these emails:...

قسمت 31

Model Hooks and Seesaws

Over the next few lessons, we'll review various approaches for organizing your code. Consider the "send an email when a project is created" portion of the code. We could trigger this logic in multiple ways: through the controller, as an Eloquent mode...

قسمت 32

Custom Events and Listeners

Let's now review the third choice for refactoring our code: custom events. As you'll see, this particular refactor does come with small complexity cost up front; however, particularly when dealing with actions that include multiple side effects, this...

قسمت 33

User Notifications

You already know how to send basic emails. Next, let's move on to Laravel notifications. Using Laracasts as an example, imagine that we must notify a user when their subscription renewal charge has failed to process. While, yes, we can send them an e...

قسمت 34

Laravel and the Front-end

Let's take a break from PHP, and switch over to our recommended front-end workflow within a Laravel app. We'll do a crash-course on webpack, Laravel Mix, compiling CSS, and debugging your Vue components.

قسمت 35

Collection Essentials

We should take some time to review Laravel collections. You'll receive and reach for these constantly as you construct your app. Not only will Eloquent queries return collection instances, but you can also create your own custom collections with ease...

قسمت 36

Sessions and Flash Messaging

Because the web is stateless, we can use sessions as a mechanism for recording important user information from page to page. In this lesson, we'll review the basic sessions API and flash messaging. Finally, for extra credit, we'll review how to make...

قسمت 37

Laravel Testing Crash Course

Let's finish up this series with a crash-course in testing Laravel applications with TDD. Using the example of "teams," we'll review two different forms of testing: feature and unit.

قسمت 38

The Next Steps

All good things must come to an end, including "Laravel From Scratch." Though we've covered a massive amount of material in this series, naturally, there's a great deal more to review. That's why your next step should be Build a Laravel App With TDD....

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.