Download the PHP package jetcoder/token-login without Composer
On this page you can find all versions of the php package jetcoder/token-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jetcoder/token-login
More information about jetcoder/token-login
Files in jetcoder/token-login
Download jetcoder/token-login
More information about jetcoder/token-login
Files in jetcoder/token-login
Vendor jetcoder
Package token-login
Short Description A packages for practice jwt&socialite o(∩_∩)o
License MIT
Package token-login
Short Description A packages for practice jwt&socialite o(∩_∩)o
License MIT
Please rate this library. Is it a good library?
Informations about the package token-login
JLogin
使用
-
创建配置文件 php artisan vendor:publish --provider="Jetcoder\JLogin\LoginActServiceProvider"
-
修改 config/auth 的配置,用户模型可以修改为自己的
'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'jwt', 'provider' => 'users', ], ],
-
配置jwt,这里不赘述了.官方已经详细说明 https://jwt-auth.readthedocs.io/en/develop/
- 配置.env文件
然后就可以用外观来调用了.其实也就简单再封装一下.待优化的.
使用 app('token') 调用jwt
使用 app('socialite')调用laravel-socialite
All versions of token-login with dependencies
PHP Build Version
Package Version
The package jetcoder/token-login contains the following files
Loading the files please wait ....