لاراول

امکانات جدید Laravel 8

What's New in Laravel 8

Laravel 8 is nearly here! This release includes brand new application scaffolding, class-based model factories, migration squashing, time traveling, and so much more. Join me as, one topic per episode, we review everything you need to know!

This series will officially begin on September 8th.



سطح متوسط 11 جلسه آموزشی 00:01:00 ساعت
01
قسمت 1

Preparing for Laravel 8

Before we dive into the new features in Laravel 8, let's first pull in the latest version of the Laravel Installer tool. This new version includes the ability to generate the necessary Jetstream scaffolding when creating a Laravel app.

02
قسمت 2

The New Models Directory

First up on our journey is the new models directory and namespace.

03
قسمت 3

Squash a Massive Migrations Folder

Those of us with long-running Laravel applications are well-aware of how massive the migrations folder can get. The Laracasts codebase, itself, has well over 100 migrations that must run every time I refresh the database. As part of Laravel 8, you can now squash these down into a schema file.

04
قسمت 4

Class-Based Model Factories

In Laravel 8, all generated models include a new HasFactory trait. In this episode, we'll review the new class factories as well as how to execute them.

05
قسمت 5

Model Factory Relationships

Before we move on, let's dig a bit more into the new model factory generation. In this episode, we'll review relationships and the has magic method.

06
قسمت 6

Maintenance Mode Secrets

Laravel 8 ships with improved maintenance-mode functionality. You can now pre-render templates and specify a secret key to effectively "whitelist" any users you share it with.

07
قسمت 7

Cleaner Closure-Based Event Listeners

If you enjoy using the traditional Event::listen() syntax for registering event listeners, you'll be happy to hear that the syntax is now a bit cleaner. In this episode, we'll review a basic registration example, while also taking a look at the new queueable() function.

08
قسمت 8

Wormholes

The new Wormhole class allows for Carbon-based time-traveling. This can be useful in testing situations where you need to setup a world where Carbon::now() returns a specific date and time that you specify.

09
قسمت 9

Improved Rate Limiting

Laravel 8 ships with an improved API for declaring rate limits on a per-key basis. In this episode, we'll review the differences between the Laravel 7 and 8 approaches.

10
قسمت 10

Jetstream

Jetstream is Laravel's brand new application scaffolding package that replaces Laravel UI. It includes authentication and registration, profiles, two-form authentication, teams, Livewire and Inertia stacks, and so much more.

11
قسمت 11

Upgrade the Laracasts Codebase to Laravel 8

If you'd like to come along, in this video, I will be upgrading the Laracasts codebase itself from Laravel 7 to Laravel 8. It shouldn't be too difficult, so let's get started!

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

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