Skip to content

gitesh-webkul/legacy-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 specification. Contributions of any kind welcome!

About

Bagisto Legacy API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.1%
  • Blade 9.9%