We’re starting to realize that each individual forum reply should have a decent amount of behavior associated with it. With that in mind, in this episode we’ll create a dedicated Vue component for a reply, and then implement the necessary functionality to quickly edit the body of a reply without requiring a page refresh.

From time to time, you may find yourself in the position of needing to interact with an object’s data as if it’s an array. The solution is to implement PHP’s ArrayAccess interface. I’ll show you how in this episode.
Source: Laracasts

Coming in Laravel 5.5 is a new and improved design for the error pages. The default errors will extend from an errors::layout file and get some small design additions over the current style with flexbox and a vertically centered message.

Customizing the Laravel Error Messages

Just as before you can still easily customize the Laravel error views by creating your own in the resources/views/errors* directory. It works by naming your Blade file the same as the error number. So if you want to have a custom 500 page, then you would create resources/views/errors/500.blade.php.

Inside this template, you can adjust the following sections:

@extends('errors::layout')
@section('title', 'Error')
@section('message', 'Sorry, we are having a temporary problem. We have been alerted and will be rolling out a fix soon')

The parent errors::layout comes from inside the framework and you are welcome to continue using it, or create your layout file and extend it.

By default, Laravel comes with the following included error files:

404.blade.php

419.blade.php

500.blade.php

503.blade.php

Finally, if you are curious on how Laravel determines the error view file to show the user take a look at the renderHttpException method.

The first main part is the replaceNamespace call which says to first look in your “resources/views” folder, then fallback to the “views” within the framework:

Doorman is a Laravel package that allows you to limit access to your Laravel applications by using invite codes.

Once installed you can generate and redeem invites through the Doorman facade and it includes support for Form Request validation.

You can generate new invites like this:

// Generate a single invite
Doorman::generate()->make();
// Generate five invites
Doorman::generate()->times(5)->make();
// Make an invite that expires on a specific date.
$date = Carbon::now('UTC')->addDays(7);
Doorman::generate()->expiresOn($date)->make();
// Make an invite that expires in 14 days.
Doorman::generate()->expiresIn(14)->make();
// Or even bind it to a specific person
Doorman::generate()->for('me@example.org')->make();

MarkdownMail is a new web app that allows you to create markdown email themes for you Laravel apps. You register and login with Github and create a new theme. Next, it gives you a demo email and options on the left side to edit the colors:

Once you are satisfied you can export as HTML or a Laravel Theme.

MarkdownMail is free to use and will save you a lot of time in building those emails. Give it a try!

We’re still missing a very basic piece of functionality. Any authorized user should be able to delete a reply. Let’s implement that in this episode.
View the source code for this episode on GitHub.
Source: Laracasts

The crew discussed the overall mission with Laravel, getting started with the framework, the ecosystem and more. You can watch it on YouTube below or on your podcast of choice once they get it all compressed down.