Laravel 11 support

This commit is contained in:
Maxime 2024-04-12 12:13:50 +02:00
parent 0d1885bead
commit 9d17dacae2
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ use Bluesquare\Connect\Traits\HasConnectData;
use Bluesquare\Connect\Traits\HasConnectTokens;
use Bluesquare\Connect\Traits\HasConnectWebhook;
use GuzzleHttp\Client;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Http\Request;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Log;
@ -17,7 +18,7 @@ class Connect
{
protected $app;
public function __construct($app)
public function __construct(Application $app)
{
$this->app = $app;
}
@ -94,7 +95,7 @@ class Connect
$url = $this->getUrl() . '/oauth/authorize?' . $query;
return redirect()->to($url);
return redirect($url);
}
public function checkState(Request $request)