-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1edef34
commit 57a7319
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Introduction | ||
|
||
This package is a laravel wrapper for the [progresivjose/piano-oauth](https://github.com/progresivjose/piano-oauth) package | ||
|
||
## Requirements | ||
- PHP ^8.1 | ||
- Laravel ^10 | ||
|
||
## Instalation | ||
|
||
First you need to install the package in your laravel project | ||
|
||
```bash | ||
composer require progresivjose/laravel-piano-oauth | ||
``` | ||
|
||
Then you'll need to include the provider in the *config/app.php* file | ||
|
||
```php | ||
'providers' => ServiceProvider::defaultProviders()->merge([ | ||
/* | ||
* Application Service Providers... | ||
*/ | ||
|
||
Progresivjose\LaravelPianoOauth\Providers\PianoOauthProvider::class, | ||
])->toArray(), | ||
|
||
``` | ||
|
||
After that you can run the vendor:publish to import the assets and config files. | ||
|
||
```bash | ||
php artisan vendor:publish | ||
```` | ||
|
||
Then you must run the migration command to create the piano_users table | ||
|
||
```bash | ||
php artisan migrate | ||
```` | ||
After that you must change the *config/auth.php* file and replace the *App\User.php* value from the providers config to *\Progresivjose\LaravelPianoOauth\Models\PianoUser::class* | ||
```php | ||
'providers' => [ | ||
'users' => [ | ||
'driver' => 'eloquent', | ||
'model' => \Progresivjose\LaravelPianoOauth\Models\PianoUser::class, | ||
], | ||
] | ||
```` | ||
|
||
And that's all you must do to use the Piano Oauth in your laravel project |