Laravel advances to version 7 on March 3rd, 2020 with updates to Blade components, custom casting, fluent string operations, a friendly HTTP client, and much more. In this series, one episode at a time, we'll review everything you need to know.
Added 10 months ago
Laravel advances to version 7 on March 3rd, 2020 with updates to Blade components, custom casting, fluent string operations, a friendly HTTP client, and much more. In this series, one episode at a time, we'll review everything you need to know.
Added 10 months ago
Laravel Sanctum provides a light-weight authentication system for single-page applications and token-based APIs. In this episode, we'll...
Blade components have received a significant update as part of Laravel 7. In addition to a new Vue-like syntax, any component may now be backed by a view model (of sorts).
Laravel 7 ships with a new Stringable
class that provides a fluent object-oriented interface for manipulating strings.
We can now create custom Eloquent cast types. This, as an example, would allow you to transform one or more attributes into a dedicated type (like a value object). The key is to prepare a class that implements the CastsAttributes
interface.
Laravel 7 includes some useful improvements to route model binding. You may now specify a custom route key name without adding a getRouteKeyName()
method to the associated model. Instead, simply add the custom key as part of the route declaration: /posts/{post:slug}
. Additionally, when specifying custom keys, Laravel will automatically scope them to a parent relationship if relevant.
Laravel 7 now ships with a friendly wrapper around the popular Guzzle HTTP client. It's never been easier to quickly make the necessary API request with the proper request data and headers. I'll show you everything you need to know in this episode.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!