Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bagisto/legacy-api
Bagisto Legacy API
https://github.com/bagisto/legacy-api
Last synced: 4 days ago
JSON representation
Bagisto Legacy API
- Host: GitHub
- URL: https://github.com/bagisto/legacy-api
- Owner: bagisto
- License: mit
- Created: 2021-11-18T08:15:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T13:38:12.000Z (about 1 year ago)
- Last Synced: 2024-04-24T20:14:13.854Z (7 months ago)
- Language: PHP
- Size: 139 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Bagisto Legacy API
This package is for the user who still wants to use the older version.
------
### 2. Requirements:
* **Bagisto**: v1.5.1
## Installation
- Run `composer require bagisto/legacy-api`.
- Run `php artisan jwt:secret`.
- Goto app/Http/Kernel.php and add find an array 'middlewareGroups' inside it there is a key named 'api' inside it do an entry:
~~~
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
~~~- Add JWT Time To Live in `.env` file: `JWT_TTL=525600`
- Add JWT_SHOW_BLACKLIST_EXCEPTION in `.env` file: `JWT_SHOW_BLACKLIST_EXCEPTION=true`
- Goto config/auth.php and add the below line of code in guard array
~~~
'api' => [
'driver' => 'jwt',
'provider' => 'customer',
],
~~~
And add below line of code in provider array
~~~
'customer' => [
'driver' => 'eloquent',
'model' => Webkul\API\Models\Customer::class,
],
~~~
## Contributors ✨This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!