Laracon: 4 new features in Laravel 5.3

Just yesterday, at Laracon (USA), Taylor Otwell just introduced the latest features of Laravel 5.3, including four main contents: Laravel Scout, Laravel Passport, Laravel Mailable, and Laravel Notifications.

The talk was planned for 90 minutes, and Talor took advantage of every minute to explain the four features that were most detailed in such a limited time. Let's explore these four features.

Laravel Scout

Laravel Scout is a full-text search based driver for Eloquent. Moreover, Laravel Scout also supports Algolia, and as a driver based, anyone can create their own integration with other full-text search systems.

Scout works by adding "easy to find" properties to your existing models. Then, just sync the data with the search services as follows:

You can then find your model with:

You can also paginate:

And adding simple "where" clauses:

Laravel Mailable

Laravel is a new Mail class used to send email with more information:

Of course, you can use other mail features:

Laravel Notifications

Laravel Notifications allows you to make quick updates via services like Slack, SMS, or Email.

Notifications with responsive transactional email template attachments. In the notification class, all you need to send the message is the following code:

Or if it is an error:

Laravel Passport

Passport Laravel is an optional package, full oAuth 2 server, ready to be used.

You can set your own scope, Vue.js components to create tokens, cancel tokens, …

All of these features will be included in the document when officially released as planned in the next few weeks.

ITZone via laravel-news

Share the news now