Laravel8: A memo that I immediately tried the new login jetstream
Laravel8: A memo that immediately tried the new login “jetstream”
Hello everyone I’m Yamazaki, Chief Lecturer of G’s Academy m (_ _) m This time, I will update to Laravel 8 and do My Memo for creating Login screen.
The following is the screen when the Laravel 8 installation is completed. It’s changed …
Prerequisites / Verification environment
–People who understand the basics of Laravel and have experience in creating CRUD –In terms of the content of the article, it is *** my memo *** when using Login of Laravel8. -* PHP 7.3.x (confirmed environment) * -** For EC2: t2.small (Memory 2G or more is required, so it is necessary for “laravel / jetstream”, so t2.micro is moss. Those who can handle with Swap are still OK) ** –Node.js must be installed
[Refer to here for creating a login screen with Laravel 6/7]
Laravel8 Login screen creation
1. Install laravel / jetstream
There seem to be several types, this time I chose the simple one! !!
composer require laravel / jetstream php artisan jetstream: install livewire php artisan migrate npm install npm run dev
Select “Livewire” or “inertiajs” for the second time of the above command. Both are new.
# https://laravel-livewire.com/ php artisan jetstream: install livewire # https://inertiajs.com/ php artisan jetstream: install inertia
“Inertia doesn’t have client-side routing and doesn’t require an API. As always, just build the controller and pageview” and “think of it as the glue that connects the client-side and the server-side.” I wrote it like that. This is for building vue / React / Svelte … on the front side.
Profile page? ??
Somehow, it’s getting really good. .. ..
First of all, the Laravel8 version of LOGIN has been implemented!
- Login also seems to have “some options” *, so I will investigate this later. No, I feel that the installation was crispy (personal impression). Since the function after login has been expanded, I will touch it and investigate it from now on. It’s amazing ~ I’m excited! !!
- I made a note in 30 minutes in the morning, so I’m sorry if I made a mistake m (_ _) m
- When I checked it earlier, there were many people who had already published similar articles. .. Fast people are really fast. The output is important. This is fine.
Laravel 8.x Official
“Laravel DB.com” is also in operation
A tool that can generate migration just by designing a table of Laravel https://qiita.com/daisu_yamazaki/items/4e13ac43c20bcdedeb40