1. Go to this page and download the library: Download konsulting/laravel-butler library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
konsulting / laravel-butler example snippets
'providers' => [
// Other service providers...
Konsulting\Butler\ButlerServiceProvider::class,
],
'aliases' => [
// Other aliases...
'Butler' => Konsulting\Butler\ButlerFacade::class,
],
class RouteServiceProvider ...
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
\Butler::routes();
}
// Other Settings
'providers' => [
'google' => [
'name' => 'Google',
'scopes' => [], // define any specific scopes you want to request here
'icon' => 'fa fa-google',
'class' => 'btn-google',
],
...
]
$driver = \Butler::driver(string $providerName); // For a specific social identity, this would be $socialIdentity->provider
$driver->refresh($socialIdentity);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.