This commit is contained in:
Maxime Renou 2020-05-12 12:47:10 +02:00
parent 17d4fd2306
commit 133aaff3e7
3 changed files with 29 additions and 1 deletions

View File

@ -28,7 +28,10 @@
"laravel": { "laravel": {
"providers": [ "providers": [
"Bluesquare\\Connect\\ConnectServiceProvider" "Bluesquare\\Connect\\ConnectServiceProvider"
] ],
"aliases": {
"Connect": "Bluesquare\\Connect\\Facades\\Connect"
}
} }
}, },
"require": { "require": {

View File

@ -5,6 +5,7 @@ namespace Bluesquare\Connect;
use Bluesquare\Connect\Traits\HasConnectSync; use Bluesquare\Connect\Traits\HasConnectSync;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Psr\Http\Message\StreamInterface; use Psr\Http\Message\StreamInterface;
@ -359,4 +360,9 @@ class Connect
{ {
return config('bconnect.url') ?? 'https://connect.bluesquare.io'; return config('bconnect.url') ?? 'https://connect.bluesquare.io';
} }
public function routes(Router $router)
{
dump($router);
}
} }

19
src/Facades/Connect.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace Bluesquare\Connect\Facades;
use Illuminate\Support\Facades\Facade;
class Connect extends Facade
{
/**
* Register the typical Connect routes for an application.
* @return void
*/
public static function routes()
{
static::$app->make(\Bluesquare\Connect\Connect::class)->routes(
static::$app->make('router')
);
}
}