joy/voyager-api-auth

This Laravel/Voyager module adds REST Api Auth to Voyager.

Fund package maintenance!
Patreon

v1.2.30 2022-04-12 23:20 UTC

README

This Laravel/Voyager module adds REST Api Auth to Voyager.

By 🐼 Ramakant Gangwar.

Latest Version GitHub Workflow Status Total Downloads

Prerequisites

Installation

# 1. Require this Package in your fresh Laravel/Voyager project
composer require joy/voyager-api-auth

# 2. Publish
php artisan vendor:publish --provider="Joy\VoyagerApiAuth\VoyagerApiAuthServiceProvider" --force

# 3. Test Api with CURL
curl -s 'http://localhost/api/login' -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw $'{\n  "email": "admin@admin.com",\n  "password": "password",\n  "remember_me": false\n}'

Working Example

You can try laravel demo here https://joy-voyager.herokuapp.com/api/documentation.

Documentation

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the joy voyager-api-auth? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail gangwar.ramakant@gmail.com instead of using the issue tracker.

Testing

You can run the tests with:

vendor/bin/phpunit

Upgrading

Please see UPGRADING for details.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email gangwar.ramakant@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.