Laravel 6 Authentication

Laravel 6 Authentication

Laravel 6 Authentication:

yes Create a Project

go to command

command

composer create-project --prefer-dist laravel/laravel blog "6.*"

 

yes Change .htaccess, index.php, web.config

  • Go to Project.
  • Go to the public.
  • Cut (.htaccess, index.php, web.config).
  • Back home paste all (.htaccess, index.php, web.config).
  • Go to index.php,
  1. <?php
  2. /**
  3.  * Laravel - A PHP Framework For Web Artisans
  4.  *
  5.  * @package  Laravel
  6.  * @author   Taylor Otwell <taylor@laravel.com>
  7.  */
  8. define('LARAVEL_START', microtime(true));
  9. /*
  10. |--------------------------------------------------------------------------
  11. | Register The Auto Loader
  12. |--------------------------------------------------------------------------
  13. |
  14. | Composer provides a convenient, automatically generated class loader for
  15. | our application. We just need to utilize it! We'll simply require it
  16. | into the script here so that we don't have to worry about manual
  17. | loading any of our classes later on. It feels great to relax.
  18. |
  19. */
  20. require __DIR__.'/vendor/autoload.php';
  21. /*
  22. |--------------------------------------------------------------------------
  23. | Turn On The Lights
  24. |--------------------------------------------------------------------------
  25. |
  26. | We need to illuminate PHP development, so let us turn on the lights.
  27. | This bootstraps the framework and gets it ready for use, then it
  28. | will load up this application so that we can run it and send
  29. | the responses back to the browser and delight our users.
  30. |
  31. */
  32. $app = require_once __DIR__.'/bootstrap/app.php';
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Run The Application
  36. |--------------------------------------------------------------------------
  37. |
  38. | Once we have the application, we can handle the incoming request
  39. | through the kernel, and send the associated response back to
  40. | the client's browser allowing them to enjoy the creative
  41. | and wonderful application we have prepared for them.
  42. |
  43. */
  44. $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
  45. $response = $kernel->handle(
  46.     $request = Illuminate\Http\Request::capture()
  47. );
  48. $response->send();
  49. $kernel->terminate($request, $response);
     

Output:

 

yesAuthentication:

Go to Project. then command.

command:

composer require laravel/ui "^1.0" --dev

command:

php artisan ui vue --auth

 

Output:

 

Register page:

Output:

 

yesCreate Database:

Create a Database:

Output:

 

yes Go to .env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=Your Database Name
DB_USERNAME=root
DB_PASSWORD=

 

command:

php artisan migrate

Then Register a Account:

Output:

 

Laravel 6 successfully installs and authentication.

 

Thank You.............................