How to config Laravel passport
S-Cart uses package
From S-Cart version 6.5, you can change important Laravel passport configurations in the file "s-cart/config/passport.php"
You can directly edit the configuration content in the config. But best, create the variables and configuration in the .env
laravel/passport
to create API in system.From S-Cart version 6.5, you can change important Laravel passport configurations in the file "s-cart/config/passport.php"
Some important information regarding token expiration time:SCart-folder/
├── app
├── config
│ ├── passport.php
'config' => [
'tokensExpireIn' => env('PASSPORT_TOKEN_EXPIREIN', '15'), // the number of days the token will expire (days)
'refreshTokensExpireIn' => env('PASSPORT_REFRESH_TOKEN_EXPIREIN', '30'), // the number of days the refresh token will expire (days)
'personalAccessTokensExpireIn' => env('PASSPORT_PERSONAL_ACCESS_TOKEN_EXPIREIN', '6'), // the number of months the personal token will expire (months)
],
You can directly edit the configuration content in the config. But best, create the variables and configuration in the .env
Related topics
Latest Document
- Upgrade guide 2024-03-24
- Customize search page 2023-08-02
- Discount code (coupon) 2023-05-14
- Upgrade guide 2023-11-23
- Data relations in S-Cart 2023-02-05