Flutter Laravel Authentication - login register and logout with login state

Опубликовано: 10 Ноябрь 2024
на канале: Code Pie
10,890
144

In this video, I have show how create connect flutter with Laravel. In this Video I have implemented Flutter login register and logout with login state using Laravel API. You will learn how to create flutter login, signup and sign out with Laravel API. I have hosted Laravel API on live server and you can use API links from here.


Flutter App Source Code : https://github.com/umairshah143/Flutt...
Laravel API Source Code : https://github.com/umairshah143/api

Topics:
Create Flutter Laravel API
Create Login and Register Route
Host Laravel Flutter Login API on Sever
Add Login Register API to Flutter App
Store user login state using SharedPrefferences
Add Logout Functionality

Chapters:
00:00:00 - Demo and Info
00:00:34 - Create New Laravel Project
00:01:39 - Setup Database, Database Table for user, migration and Create Controller
00:04:06 - Create function Register User using Laravel API
00:07:13 - Create function Login User using Laravel API
00:10:47 - Create route in Laravel for login and register
00:12:15 - Test Laravel API in Postman API tool
00:13:53 - Host Laravel API on server
00:20:10 - Create HTTP Post Request in Flutter
00:23:23 - Create Register Function to Register User from App using Laravel API
00:27:27 - Create Login Function to Login User from App using Laravel API
00:29:07 - Add Shared preferences package to store login State
00:32:50 - Get user data from Shared Preferences
00:36:52 - Maintain user login state
00:40:15 - Add Logout option to App using HTTP PHP Laravel API
00:42:39 - Check Full Login Register and Logout with Auth State Maintenance