Load Google Fonts Async

When you run your website through Google PageSpeed it will highlight the Google web font script as a render blocking file. Using the WebFontLoader to load the web fonts on the page with async and th...

Using Webpack Code Splitting

In this tutorial we're going to investigate a cool webpack feature called code splitting. Code splitting will allow you to reduce the size of your main JavaScript file into different files and lazy l...

Free Files For June 2018

Each month the Envato marketplace brings you free premium files, here's the free files for June 2018. Envato is a web marketplace where you can get premium files for different areas of your website....

Laravel Cache Auth::user()

If you use Laravel debug bar when developing your app you'll notice there is a tab that will show you all the database queries your application is making. This is a great tool to spot areas where yo...

The Problem With Using Redis As Session Driver With Laravel

The problem comes when you're using Redis as both the cache driver and the session driver. By default these are stored in the same Redis database, therefore if you ever clear the cache of your application you will also remove the session information, which results in all your users being logged out.

Laravel User Last Logged In

In this tutorial we're going to create a new Laravel listener that will listen to the user logged in event and then update the user record with the time they logged in. This is a handy feature to che...

Creating a Laravel Package For Auth Tests

In this tutorial we're going to create a new Laravel package for the Auth tests we wrote in a previous tutorial.

Laravel Make Auth Tests

The missing tests to go with the Laravel make:auth command. Can use on every Laravel project for login, register, forgotten password and reset password.

Free Files For May 2018

Each month the Envato marketplace brings you free premium files, here's the free files for May 2018. Envato is a web marketplace where you can get premium files for different areas of your website.

How To Create A Toggle VueJS Component

In this tutorial we're going to build a form components for a checkbox but styled as a toggle. The functionality for this toggle will be just like a checkbox but will move the toggle when the checkbo...

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...

Nginx Redirect www to non-www

It's very common these days to see websites that just use the `non-www` domain and therefore redirect all requests to `www` to the domain. Below is a quick code snippet you can use to take all reques...

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...

Organising PHP Exception Classes

In this tutorial we're going to investigate how we can organise PHP exception classes better in PHP. In PHP you have a lot of options for exception classes each allow you to catch different error stat...