Package Data | |
---|---|
Maintainer Username: | michielfb |
Maintainer Contact: | hi@michiel.email (Michielfb) |
Package Create Date: | 2016-08-17 |
Package Last Update: | 2016-09-13 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-10 15:03:21 |
Package Statistics | |
---|---|
Total Downloads: | 502 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 0 |
This package extends the laravel/socialite package. It allows to create a 'login with Exact Online' feature within minutes.
Use the steps below to install the package.
##1. Composer
composer require michielfb/socialite-exactonline
##2. Register the service provider
config/app.php
SocialiteProviders\Manager\ServiceProvider::class
to your providers array in config/app.php
##3. Add an event and listener
Add the listener to the listen
array in EventServiceProvider
:
protected $listen = [
...
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
'\Michielfb\SocialiteExactonline\ExactonlineExtendsSocialite@handle',
],
...
];
##4. Register the client_id and client_secret
Add a section to the array app/services.php
. The base_url
is optional. By default it will use the url for The Netherlands.
return [
...
'exactonline' => [
'client_id' => env('EXACTONLINE_CLIENT_ID'),
'client_secret' => env('EXACTONLINE_CLIENT_SECRET'),
'redirect' => env('EXACTONLINE_CALLBACK_URL'),
'base_url' => env('EXACTONLINE_BASE_URL'),
],
....
];