لاراول

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

What's New in Laravel 5.5

Here we go again! Currently scheduled for an August release date, we're on the verge of Laravel 5.5. With that in mind, let's get a head start on the new features and additions to the framework. As always, there's quite a few!

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

Laravel 5.5 Installation and Whoops

Let's get started by installing, at the time of this recording, the development version of Laravel. That way, we can pull in the 5.5 version of the framework. Once setup, we'll also take a quick look at the new Whoops integration.

02
قسمت 2

Streamlined Request Validation

A small, but long-requested addition, you may now send a validate message directly on your Request instance. Even better, this method call will return the validated data, which means you can pass the result directly to your model's create or update m...

03
قسمت 3

Fresh Migrations

A new migrate:fresh Artisan command is being introduced as part of Laravel 5.5. This is similar to the existing refresh option, however, rather than rolling back all of your migrations (and triggering the respective down method for each), this new co...

04
قسمت 4

Frontend Presets

Out of the box, Laravel ships with a small bit of frontend boilerplate to get you up and running as quickly as possible. Specifically, it includes a few Sass and Vue suggestions. However, as part of Laravel 5.5, you may now configure this initial boi...

05
قسمت 5

Automatic Package Discovery

If you've ever installed a Laravel package before, you most certainly were required to visit your `config/app.php` file to add a service provider and alias. This is what allows the package to bootstrap itself into your Laravel installation. In Larave...

06
قسمت 6

Faster Email Layout Testing

Testing the layout of your mailables can always be a little tricky. Usually, we resort to sending the email to a test email server like Mailtrap, and then reviewing the output. In Laravel 5.5, however, we can now return a mailable class instance dire...

07
قسمت 7

Silky Smooth Custom Validation Rules

In Laravel 5.5, you'll find a brand new App/Rules folder. The next time you require custom logic for a particular request attribute, you'll laugh at how simple it now is.

08
قسمت 8

Collection Dumping

Debugging a complex collection pipeline can get a little tricky. Often, you'll find yourself temporarily commenting out portions of code, as you confirm the dumped output. In Laravel 5.5, however, you'll find two new helper methods on your collection...

09
قسمت 9

Model Factory Generation

In Laravel 5.4, all model factories were contained within a single file. Need to construct a new factory? Well, you know the drill: copy and paste the one before it, and make your changes. Luckily though, in 5.5, there's a simpler way. Each of your E...

10
قسمت 10

Custom Blade "If" Directives

In Laravel 5.5, you'll find a sweet new syntax for defining custom if Blade directives. Want a useful @subscriber directive to conditionally load HTML for only the subscribers of your site? It's so easy! Give me a few moments, and I'll show you how.

11
قسمت 11

What's New in Laravel Mix

Though Mix is entirely separate from Laravel 5.5, you will find a bump to version 1.0 in your package.json file. In this video, we'll review a few new additions, including updated versioning, sequential custom tasks, fast Sass compilation, CSS purifi...

12
قسمت 12

Auto-Registering Artisan Commands

In Laravel 5.5, you'll no longer be required to manually register your Artisan commands. The framework will instead automatically scan the commands folder for you. The means you may now run php artisan make:command FooCommand, and then immediately tr...

13
قسمت 13

Higher Order Tap

The tap() helper function has now been supercharged to be even more flexible. You may omit the closure second argument to this function, in which case a proxy class will be returned. This proxy will properly delegate to any method you call from that...

14
قسمت 14

The RefreshDatabase Trait

In previous versions of Laravel, you were presented with two database-specific traits for your test classes: DatabaseTransactions and DatabaseMigrations. While it doesn't take too much work to understand the difference between the two, nonetheless, i...

15
قسمت 15

New Blade Directives

Laravel offers two new useful Blade directives as part of version 5.5: @auth and @guest. They do exactly what you'd imagine, so say goodbye to the constant @if (auth()->check()).

16
قسمت 16

Route Helpers

You may now use the helpful Route::view() and Route::redirect() helpers within your routes.php file. Think of these as shorthand for loading a view and performing a redirect, respectively.

17
قسمت 17

Toggle Exception Handling Within Your Tests

When writing tests for your application, you may encounter situations when you don't want Laravel to automatically catch and transform an exception. You can now disable exception handling on a test-by-test basis, via the $this->withoutExceptionHandli...

18
قسمت 18

Cleaner Exception Rendering

When an exception is thrown in your app, you can optionally let it bubble up to app/Exceptions/Handler.php. Here, you may type-check the exception to determine the appropriate response to return. While this is certainly useful, over the lifetime of a...

19
قسمت 19

Optional Objects

Laravel 5.5 includes a new helper() function, which you can think of as a generic null object implementation. Have you ever run into the situation where you need to fetch a property from a relationship, but it's possible that the relationship itself...

20
قسمت 20

API Resources

In Laravel 5.5, resource classes allow you to transform your Eloquent models into the proper JSON data structure. Though you can of course override the toArray() method on your models to allow for this, when building an API that you intend to expose...

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

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