hyungjune / reactauth
laravel + react api auth
dev-master
2020-03-22 13:34 UTC
Requires
- illuminate/support: ~5|~6|~7
- laravel/passport: ^8.3
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^8.0
- sempro/phpunit-pretty-print: ^1.0
- dev-master
- dev-dependabot/composer/symfony/http-kernel-4.4.50
- dev-dependabot/composer/laminas/laminas-diactoros-2.13.0
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-dependabot/composer/guzzlehttp/psr7-1.8.5
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/composer/laravel/framework-6.20.26
- dev-dependabot/composer/phpseclib/phpseclib-2.0.31
- dev-dependabot/composer/symfony/http-foundation-4.4.7
This package is auto-updated.
Last update: 2024-10-30 01:37:17 UTC
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require hyungjune/reactauth $ php artisan preset reactAuth $ npm install
Usage
- config/auth.php의 api driver를 passport로 수정
'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'passport', 'provider' => 'users', 'hash' => false, ], ],
- migrate
$ php artisan migrate
- passport key generate
$ php artisan passport:install
- .env 파일에 email 세팅
MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=your's MAIL_PASSWORD=your's MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=your's MAIL_FROM_NAME="${APP_NAME}"
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.