Getting Started with Laravel (PHP Framework) - Users and Authentication

Laravel is an amazing PHP framework allowing you to build great web applications. This course dives into Authentication, how Laravel helps you with it, and how to add it to your Laravel app.
Course info
Rating
(41)
Level
Beginner
Updated
Mar 31, 2017
Duration
2h 2m
Table of contents
Course Overview
Getting Started
Creating and Authenticating Users
Customizing User Authentication
Managing the User Authentication State
Protecting Routes with Middleware
Description
Course info
Rating
(41)
Level
Beginner
Updated
Mar 31, 2017
Duration
2h 2m
Description

Authenticating users is a core task of almost any web application you create. In this course, Getting Started with Laravel (PHP Framework) – Users and Authentication, you'll learn how to implement authentication in a Laravel application. First, you'll discover how Laravel approaches authentication. Next, you'll dive into the difference between authentication and authorization. Then, you'll learn how to implement authentication features like sign up and sign in to your app. Finally, you'll explore how to protect routes against unauthenticated access. By the end of this course, you'll be able to add authentication to all your Laravel applications.

About the author
About the author

Max is a freelance web developer and professional online instructor. Whilst being into development since 15 years of age, he studied Business Administration and worked in major consultancies as well as a bank before making his passion his main job. If not coding, Max enjoys sports, cooking, and meeting people.

More from the author
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Maximilian Schwarzmuller, and welcome to my course, Getting Started with Laravel (PHP Framework) - Users and Authentication. I'm a freelance web developer, online instructor, and long term Laravel developer. Did you ever realize in how many applications you need to sign up and sign into to be able to really use them or do anything at all? Authentication is at the core of almost any web app you'll find. In this course, we're going to learn how to implement authentication in a Laravel application, and therefore open the gate to a whole new world of features we can now add to that application. Some of the major topics that we will cover include understanding how Laravel approaches authentication, diving into the difference between authentication and authorization, implementing authentication features like sign up, sign in to your app, and protecting routes against unauthenticated access. By the end of this course you'll be able to add authentication to all of your Laravel applications and therefore, you'll be able to control what users may access and what they don't. Before beginning the course, you should be familiar with PHP and the basics of Laravel. From here you should feel comfortable diving into more advanced Laravel features, for example with my course on Building a RESTful API with Laravel. I hope you'll join me on this journey to learn how to authenticate users with the Getting Started with Laravel Users and Authentication course at Pluralsight.

Getting Started
Welcome to this third and last course of my Getting Started with Laravel trilogy here on Pluralsight. In this course, we're going to focus on users and authentication, and specifically in this module I want to give you an overview over what you can expect from this course, what you will learn, and how authentication works, in general and also in Laravel. Throughout this course, we're going to take the application we built in the last two course of this trilogy, and later in this section I will explain where you can find this code if you haven't gone through the other two parts, so we'll use the project we built there, and we will add authentication to it. So we will add functionality which allows users to sign up, and then only create new posts if they were signed up, and also how to log in once you have signed up, or maybe even reset your password if you forgot it. So by learning authentication by applying it to a real project, you should be able to by the end of this course add authentication to any of your Laravel project, and not just basic authentication, we will also have a look at some other nice features related to authentication. Let's take a closer look at this in the next clip.

Creating and Authenticating Users
Welcome to another course module. Now that we learned how authentication works in Laravel and how Laravel helps us with that in the last course module, this course module is all about creating and authenticating users, so seeing this in our actual application. Therefore, we will have a look at how Laravel gives us a real Quickstart when it comes to implementing authentication into a project, how we can then customize these authentication tools Laravel gives us, and finally, we will also see how to integrate this into an existing project instead of a brand new one. So, this is what we're going to dive in, let's start.

Customizing User Authentication
Welcome to another course module. In the last module, we had a look at how we could easily integrate authentication into our existing or into a new Laravel application using the default authentication tools Laravel gives us. These are great tools, but sometimes you want to customize some things, and anyways, it really is important to also understand what's happening behind the scenes, so this is what we're going to have a look at in this module. Specifically, we will have a look at the how and why, so how does authentication then work in the end, what is Laravel doing for us there, and well why could we also do it manually, or why might I might be one to customize it at beta, how would that work? Then we will have a look at the configuration of the Laravel authentication, so where we can basically change some things about it, where we can tweak it to our needs. And of course, we will also have a look at authorization now. Authorization's not exactly the same as authentication, authorization kind of requires us to be authenticated, but then it's all about deciding whether we're able to access a certain resource or not, and we're going to see how we can create a custom gate, which is one of the tools we have at our disposal in this section too. So a lot of topics to cover, let's start.

Managing the User Authentication State
Welcome back to this course where we will have a closer look at Managing the User Authentication State, and with this I mainly mean two important topics. We're going to have a look at how we can remember users, this is actually built into Laravel, but we'll understand what happens behind the scenes and how it works, and then we're going to have a look at resetting passwords, how we can utilize the methods Laravel gives us when it comes to this, and how we can adjust it to our needs too. Now let's start with remembering users, and let's actually dive into our existing app to see it in action first before diving into what happens behind the scenes and how we can implement it in our custom authentication flow.

Protecting Routes with Middleware
Welcome to this last course module of this authentication course. Throughout the course, we've already covered a lot, we implemented authentication, you learned how you can remember users and add a password resetting functionality, and much more. Now there's also one thing which is key to any application which we did implement but in a suboptimal way, protecting your routes. In this section, we're going to have a look at how we can do it better with middleware and what middleware is to begin with, how we can then create such a simple middleware, and how in the end we can use middleware to protect our routes. Now let's start with the first part and dive into middleware, understand what it is, and therefore, also understand how it may help us with this matter.