peynman / larapress-auth
Larapress domain based authentication.
dev-master
2022-01-03 01:51 UTC
Requires
- php: ^7.0|^8.0
- laravel/framework: ^8.0
- peynman/larapress-notifications: master
- peynman/larapress-profiles: master
- tymon/jwt-auth: ^1.0.1
Requires (Dev)
- facade/ignition: ^2.3.6
- fzaninotto/faker: ^1.4
- matthewbdaly/artisan-standalone: dev-master
- mockery/mockery: ^1.0
- nunomaduro/collision: ^5.0
- orchestra/testbench: ^6.2.0
- phpmd/phpmd: @stable
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2025-03-29 00:51:26 UTC
README
A package to provide SMS, Email, 3rdParty user registration with Larapress CRUD. Based on Models provided in Larapress Profiles.
Dependencies
Install
composer require peynman/larapress-auth
Config
- Run
php artisan vendor:publish --tag=larapress-auth
- Set
larapress
as yourauth.providers.user.driver
config - Set default
Role
ID as larapresslarapress.auth.signup.default_role
config, or set it null to disable signup - Set default
SMSGatewayData
ID as larapresslarapress.auth.signup.sms.default_gateway
config - Set default admin user id for
larapress.auth.signup.sms.default_author
config
Usage
- After configuration is completed you can use API endpoints to register or authenticate users
Development/Contribution Guid
- create a new laravel project
- add this project as a submodule at path packages/larapress-crud
- use phpunit, phpcs
vendor/bin/phpunit -c packages/larapress-crud/phpunit.xml packages/larapress-auth/
vendor/bin/phpcs --standard=packages/larapress-crud/phpcs.xml packages/larapress-auth/