Laravel6/7 (laravel/ui)でのLogin機能の実装方法
#Laravel 6.x
composer require laravel/ui:^1.0 --dev
#laravel 7の場合
composer require laravel/ui:^2.4
root@***********::/work# php artisan ui vue --auth
Vue scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.
C:\Users\name\*****\*****\backend>npm install
npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
~~省略~~
C:\Users\name\*****\*****\backend>npm run dev
> @ dev C:\Users\name\*****\*****\backend
> npm run development
> @ development C:\Users\name\*****\*****\backend
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js
~~省略~~
これで完璧!!!
今後は自作できるように頑張ります。