Laravel Passport integration for WinterCMS.
This plugin is available for installation via Composer.
NOTE: This is a WORK-IN-PROGRESS BETA plugin for integrating Laravel Passport with WinterCMS. It is not complete, and no guarantees are made in regards to it's working condition. Please test out and offer improvements / bug reports.
composer require winter/wn-passport-plugin
After installing the plugin you will need to run the migrations and (if you are using a public folder) republish your public directory.
php artisan migrate
Following https://laravel.com/docs/10.x/passport#installation would have you run php artisan passport:install
. Read https://laravel.com/docs/10.x/passport for more information on using Passport.
NOTE: The default backend user model is extended to work with Passport via the Winter\Passport\Models\BackendUser
model, use that instead of Backend\Models\User
when working with Passport.