LoginSignup
0
0

More than 1 year has passed since last update.

Laravel 8 VueでLaravel標準の認証機能を実装

Last updated at Posted at 2021-11-30

手順

1. laravel/uiをインストール

composer require laravel/ui

2.ログイン機能追加

php artisan ui vue --auth

3.マイグレーション(DBに接続する設定は省きます)

php artisan migrate

4.vue-loaderのバージョンを変更

(2021-11-30現在は、変更しないとエラーになるため必須)

package.json
"vue-loader": "^15.9.7",

"vue-loader": "^15.9.8",

5.Packageをインストール

npm install

6.buildする(laravel mix)

npm run dev

7.php artisan serve(必須ではない)

(手っ取り早く確認するなら)

php artisan serve

確認

http://127.0.0.1:8000/login

または、welcomeページからLoginリンクから遷移

laravel_login.PNG

環境

Laravel Framework 8.73.2

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0