لاراول

امکانات جدید لاراول نسخه 5.8

What's New in Laravel 5.8

Laravel 5.8, which released on February 26th, 2019, ships with a new Eloquent relationship, automatic policy discovery, PHPUnit 8 support, and so much more. In this series, one-by-one, we'll dig into the most important updates you need to know about.

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

Automatic Policy Discovery

First up on the agenda is automatic policy discovery. In past versions of Laravel, each time a policy class is generated, you'd need to visit your AuthServiceProvider to manually wire it up with the appropriate model. It's not the end of the world, b...

02
قسمت 2

Update Your Cache TTL

A small, but important breaking change in Laravel 5.8 is the switch from minutes to seconds for all cache TTLs. In your codebase, track down any reference to cache()->put(), cache()->remember(), or any other variants, and do the necessary math to con...

03
قسمت 3

Use the New Postmark Driver in One Minute

Laravel 5.8 ships with a new Postmark mail driver, which is convenient since that's what Laracasts uses for all transactional emails. In this lesson, I'll show you how to create a new Postmark server, and send email through their API...all in one min...

04
قسمت 4

New Mockery Testing Helpers

Often, when preparing your tests, you'll need to mock a class, set an expectation, and then update the related instance in Laravel's service container with your mocked version. Laravel 5.8 now ships with two testing helpers to simplify this setup a g...

05
قسمت 5

Automatic Event Listener Discovery

My favorite new features are often the ones that streamline your daily workflow. With that in mind, I'm happy to report that, as of Laravel 5.8.9, Taylor has implemented optional automatic event listener discovery into the framework. Let's review the...