Interactive Make Command

The Interactive Make Command is a new package by Laracademy that allows you to get interactive questions after running php artisan make.

On the project page they have created this animated Gif which gives a great overview of how the package works:

For more information check out the project page on Github and you can install it easily through composer:

composer require laracademy/interactive-make

Then add its service provider to the config/app.php:


Finally, run php artisan make to get a list of the commands available.

Source: Laravel News

Ajaxifying the Delete Button

Now that each reply is wrapped within a dedicated Vue instance, we can easily swap out the traditional form for deleting the reply with a snappier AJAX version that doesn’t require a page refresh.

View the source code for this episode on GitHub.
Source: Laracasts

A Vue Reply Component

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.

View the source code for this episode on GitHub.
Source: Laracasts

How Do I Reference Objects Like Arrays

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

Laravel 5.5 Gets Improvements with the Default Error Views

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.

Here is how the current 50* error page looks in Laravel 5.4:

Coming to Laravel 5.5 is a new modern design:

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:


@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:

view()->replaceNamespace('errors', [

Then it returns the view of the status code if it exists:

return response()->view("errors::{$status}"

As a side note, this same fallback pattern can be setup in your views by adding additional paths to your “config/views.php” file.

'paths' => [

Now Laravel will look for a template file in the “new-design” folder and use it if it’s found, otherwise, it’ll use it from the “views” folder.

Source: Laravel News

Doorman – Limit access to your Laravel applications through invite codes

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

// Generate five invites

// Make an invite that expires on a specific date.
$date = Carbon::now('UTC')->addDays(7);

// Make an invite that expires in 14 days.

// Or even bind it to a specific person

Redeeming is just as simple:

// or
Doorman::redeem('ABCDE', '');

If you’d like to start a private invite system to your app check out the Doorman package on Github.

Source: Laravel News

MarkdownMail – A Web App to Create Laravel Markdown Email Themes

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!

Source: Laravel News

PHP Roundtable – Laravel Edition

Today the PHP Roundtable had a Laravel inspired edition featuring Taylor Otwell, Mohamed Said, Jeffrey Way, Adam Wathan, and Dries Vints.

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.

Source: Laravel News

1 2 3 17