Download the PHP package alive2212/laravel-mobile-passport without Composer
On this page you can find all versions of the php package alive2212/laravel-mobile-passport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alive2212/laravel-mobile-passport
More information about alive2212/laravel-mobile-passport
Files in alive2212/laravel-mobile-passport
Package laravel-mobile-passport
Short Description This is an illuminate package for one time authentication (OTP) with OAuth2 Base
License MIT
Homepage https://github.com/alive2212/laravelmobilepassport
Informations about the package laravel-mobile-passport
LaravelMobilePassport
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
add to service provider 'config/app.php'
if use Lumen add following service provider at then end of 'bootstrap/app.php'
migrate all database
add following code into AuthServiceProvider in 'boot' method
- tip: if ENV_DEBUG in .env file set to false don't return any data in register by token
add 'phone_number' & 'country_code' into model $fillable variable:
publish vendor files with following command:
User model must be extended from BaseAuthModel
In the next step you should install following package and it's version related to your laravel version.
- phoenix/eloquent-meta
- fico7489/laravel-pivot
Add flowing code into app\User.php
Finally run following command to install passport dependency
Optional for add routes you can put following into boot method at AppServiceProvider
Usage
1- create roles what you want in to alive_mobile_passport_roles *tip: title of roles must unique
You can use following to get current user scopes
Change log
Please see the changelog for more information on what has changed recently.
Testing
Relation of this package with another one is:
- array helper -> nothing
- laravel excel helper -> nothing
- laravel onion pattern -> nothing
- laravel query helper -> nothing
- laravel reflection helper -> nothing
- laravel request helper -> nothing
- laravel string helper -> nothing
- laravel smart response -> array helper
- laravel smart restful -> laravel excel helper, laravel onion pattern, laravel query helper, laravel reflection helper, laravel smart response, laravel string helper
- laravel passport auth -> laravel smart restful
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- author name
- All Contributors
License
license. Please see the license file for more information.
All versions of laravel-mobile-passport with dependencies
illuminate/support Version >=8
alive2212/laravel-smart-restful Version ~4
laravel/passport Version *