https://github.com/codelabmw/suave
A Laravel package that scaffolds API authentication for both token & session based authentication using laravel/sanctum.
https://github.com/codelabmw/suave
email-verification laravel laravel-api laravel-auth laravel-session laravel-token laravel-verification php verification-code
Last synced: 15 days ago
JSON representation
A Laravel package that scaffolds API authentication for both token & session based authentication using laravel/sanctum.
- Host: GitHub
- URL: https://github.com/codelabmw/suave
- Owner: codelabmw
- License: mit
- Created: 2024-12-30T17:41:16.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-04T21:11:26.000Z (4 months ago)
- Last Synced: 2025-03-29T22:04:46.438Z (about 1 month ago)
- Topics: email-verification, laravel, laravel-api, laravel-auth, laravel-session, laravel-token, laravel-verification, php, verification-code
- Language: PHP
- Homepage:
- Size: 77.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
![]()
A Laravel package that scaffolds API authentication for both token & session based authentication using `laravel/sanctum`. It uses verification codes for email verification and temporary passwords for forgot password instead of redirecting users to frontend.
## Installation
> Requires PHP ^8.3
You can install the package via composer:
```bash
composer require codelabmw/suave --dev
```## Usage
After package installation, run the following artisan command to scaffold API.
```bash
php artisan suave:install
```This will install [Sanctum](https://laravel.com/docs/11.x/sanctum) and copy necessary files for api routing. You are allowed to edit any of these files to customize the behavior suitable for your application however the default state is adequate for most applications. Copied files includes:
- [x] Routes
- [x] Contracts
- [x] Controllers
- [x] Middlewares
- [x] Models
- [x] Notifications
- [x] Events
- [x] Listeners
- [x] Traits
- [x] Tests## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Credits
- [Chikondi Kamwendo](https://github.com/kondi3)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.