Authentication Web/EmailL/Session/Bootstrap

Description
Project to understand the package UI and authentication Web, native of Laravel, Email Send to user's verification
Author:

Installations

01) Laravel Project
    composer create-project --prefer-dist laravel/laravel App_control_task "8.5.9"
02) Install nodeJs and NPM
03) Install Laravel Ui:
    composer require laravel/ui:^3.2
04) Ui Bootstrap:
    php artisan ui bootstrap --auth
    npm install
    npm run dev
05) Make a Controller of project and a Model
    php artisan make:controller --resource TaskController --model:Task
06) Configure email variables in .env, if you use Gmail, configure generate App password (Manage Account>Security>2 Steps verification>Active Passwords for App_Folder )
07) Create a Template email with Markdown: folders: (App_Folder/resource/views/emails/message.blade.php) and (App_Folder/app/mail/MessageMail.php)
    php artisan make:mail MessageMail --markdown emails.message
08) Create a set of views to customize the email template, folder: (App_Folder/resource/views/vendor/mail)
    php artisan vendor: publish (option 14)
09) Continue creating the Notification Class to Reset Password, folder: (App_Folder/app/Notifications/)
    php artisan make:notification ResetPasswwordNotification
    php artisan make:notification VerifyEmailNotification
10) Only the responsible user receives a new email. Folders: (/app/Mail/) and (Resource/views)
    php artisan make:mail NewTaskMail --markdown emails.new_task
11) Other Commands to continue the application
    php artisan make:model Task.
    php artisan migrate.
    php artisan serve.
    php artisan create:migration create_tasks_table.
    php artisan make:migration create_tasks_table.
    php artisan make:migration alter_table_tasks_relation_users.
    php artisan migrate.
12) Change the route home: in the (app/providers/RouteServiceProvider.php):

public const HOME = '/task';

13) Install laravel excel and mpdf, installation site: L I N K
    php composer require maatwebsite/excel=^3.1.0 --ignore-platform-reqs
    php artisan vendor:publish --provider "maatwebsite\Excel\ExcelProvider" --tag=config
    php artisan make:export TaskExport --model=Task
    php composer require mpdf/mpdf=^8.0.10 --ignore-platform-reqs
14) Copy the codes of App_Task.

List of importants files

Scaffolding of command: php artisan ui (Front_end) --auth (Laravel native command)

  • Package.json - dependences js
  • Routes/web.php - Routes added
  • app/Http/controllers/Auth - Controllers of authenticate codes - L i n k
  • app/Model/User.php - Attention to Trait Notifiable and Methods: sendPasswordResetNotification and sendEmailVerificationNotification. $this->notify came of trait. L i n k
  • public/css/app.css - L i n k
  • public/js/app.js - L i n k
  • Resource/views => Home.blade.php
  • Resource/views => A u t h
  • Resource/Views => L a y o u t s
  • Resources/js/Bootstrap - Configurations, definitions, front end - L i n k

Table of Authentication's Flow

HTML Method Controller and Method Route Vendor/laravel/ui/auth-backend (Trait)
GET/LOGIN LoginController@showLoginForm auth.login AutenticatedUsers
POST/LOGIN LoginController@login auth.login AutenticatedUsers
GET/REGISTER RegisterController@showRegistrationForm auth.register RegisterUsers
POST/REGISTER RegisterController@register auth.register RegisterUsers
GET/HOME HomeController@index home --------

Flow to undertand Reset Password

Flow of Laravel Framework!

PHP artisan route:list

Flow of Laravel Framework! Flow of Laravel Framework!

Useful Links

  • Laravel Sending Email - TutorialsPoint - L I N K
  • Login And Registration Email Verification in Laravel 8 - OnLineWebTutor - L I N K
  • Laravel Mail: How to Send Emails Easily in Laravel - Iankumu - LI N K
  • Envio de Email no Laravel - EspeciaizaTI - L I N K
  • Como enviar emails com Gmail e Laravel - Laraveling - L I N K
  • Laravel 8 Authentication with Laravel UI - LaraInfo - L I N K
  • Laravel UI Login Register Email Verification in Laravel 8 - OnlineWebTutor - L I N K