Laravel Send Email When New User Registers

In this tutorial we're going to learn how we can send an email to the application admin user when a new user registers to your Laravel application. In this example we're going to use events and liste...

How To Add Google reCAPTCHA To Laravel

Using Google reCAPTCHA and Laravel validation rules to verify humans are submitting your forms.

Disable Validation Redirect In Laravel

In a previous tutorial we investigated how to validate requests in Laravel by using form request objects in your controller. You can view this tutorial by using this link How To Validate Requests In L...

Laravel Resource Test Template

If you've used Laravel for some time you'll understand the use of the Controller Resource. It's a quick way of defining the functionality of a controller done to the core 7 functions. Index Create St...

DRY Create And Update Laravel Form Requests

In this tutorial we're going to investigate how we can reuse the logic in Laravel Form requests for the difference between Create and Update requests. Laravel form requests are great, they allow you t...

Laravel Command To Import Into Algolia

In the previous article we investigated how you can use Algolia with Laravel to create a realtime search. In this tutorial we learnt about the Laravel Scout command of import that allows you to import...

Laravel & VueJS Algolia Search

I wanted to use an Algolia search box on my website and found that they've already done a lot of the hard work for me, by creating the vue-instantsearch package. This allows me to quickly hook into th...

Laravel Smoke Test Guest URLs

In this tutorial we're going to build a test class that will run through all guest URLs defined in our web.php routes and check that they all return a HTTP status of 200. This is allow us to quickly c...

Creating A Laravel Contact Form Package

In this tutorial we're going to create our own Laravel package that will give you all the functionality you need to add a contact form to your website. If you want to learn more about building your ow...

Algolia Custom Query Import With Laravel

In this tutorial we're going to create a Laravel command we can use to import queried models into Algolia search index by using Laravel scout. What Is Laravel Scout? Laravel scout is a simple package...

Creating View Classes In Laravel

In this tutorial we're going to investigate creating view objects in Laravel. This functionality is very useful if you have multiple routes that return the same view in different ways. For example if...

Reduce CSS File Size With CSS Purge

In this tutorial we're going to learn how we can use a JavaScript library called Purge CSS to MASSIVELY reduce the sizes of CSS files. The way it will reduce the CSS file by searching for all the used...

How To Create Your Own Laravel Package

In this tutorial we're going to learn the how and why we will build a Laravel package. Laravel packages are one of my favourite features of using Laravel, if you come from a WordPress background think...

Laravel Unit Testing Commands

In this tutorial we're going to learn how you can unit test your Laravel artisan commands so that you can make sure they're doing exactly what you expect them to do. When unit testing it's important t...

Create Config Files For VueJS

In this tutorial we're going to learn how you can create different configuration files to be used on your VueJS/Laravel application depending on which environment you're working in. If you're working...