filmov
tv
Part 27 - Laravel Authentication Routes Views [How to Build a Blog with Laravel Series]

Показать описание
The second segment in our collection of authentication tutorials for Laravel. In this video we will work on the routes and views necessary to set up the DEFAULT Laravel authentication system.
Routes:
By default Laravel does not set up routes for our authentication system. We need to do that ourselves. We need to set up two routes for logging in (post and get) and then we need to set up a get request for logging out. Finally a get and post request for registering a new user.
You will want to copy the code exactly as put in the code snippets section below.
Views:
We need to create only two views for our users. One is a form for logging in and the other is a form for registering a new user. You can really create any type of form you want, but make sure you follow the basic outline:
Form
CSRF Protection (automagically added when you use form helpers).
Email Field
Password Field
Remember Me Checkbox (will work without it, but won't be able to trigger remember functionality)
End Form
Coming Up:
We will be making the create() function working so we can fill out a form to make a blog post.
--- CODE SNIPPETS ---
// Authentication Routes
// Registration Routes
View this snippet on Github:
--- DOWNLOAD SOURCE CODE ---
--- LINKS ---
Laravel Form Helpers Documentation:
Laravel Docs for Authentication:
--- MORE FROM THIS SERIES ---
--- FOLLOW ME ---
Subscribe for New Releases!
(ask me questions!)
--- QUESTIONS? ---
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Thanks for all your support!
---
Tags: Routes and Views for Authentication with built in to Laravel 5.2 Framework Tutorial Easy to learn. Best tut about Laravel. Build a blog with Laravel Tutorial. Beginner tutorial. How to video. PHP framework easy best tutorial. Laravel 5 coding in PHP with Alex.
Routes:
By default Laravel does not set up routes for our authentication system. We need to do that ourselves. We need to set up two routes for logging in (post and get) and then we need to set up a get request for logging out. Finally a get and post request for registering a new user.
You will want to copy the code exactly as put in the code snippets section below.
Views:
We need to create only two views for our users. One is a form for logging in and the other is a form for registering a new user. You can really create any type of form you want, but make sure you follow the basic outline:
Form
CSRF Protection (automagically added when you use form helpers).
Email Field
Password Field
Remember Me Checkbox (will work without it, but won't be able to trigger remember functionality)
End Form
Coming Up:
We will be making the create() function working so we can fill out a form to make a blog post.
--- CODE SNIPPETS ---
// Authentication Routes
// Registration Routes
View this snippet on Github:
--- DOWNLOAD SOURCE CODE ---
--- LINKS ---
Laravel Form Helpers Documentation:
Laravel Docs for Authentication:
--- MORE FROM THIS SERIES ---
--- FOLLOW ME ---
Subscribe for New Releases!
(ask me questions!)
--- QUESTIONS? ---
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Thanks for all your support!
---
Tags: Routes and Views for Authentication with built in to Laravel 5.2 Framework Tutorial Easy to learn. Best tut about Laravel. Build a blog with Laravel Tutorial. Beginner tutorial. How to video. PHP framework easy best tutorial. Laravel 5 coding in PHP with Alex.
Комментарии