dcblogdev / laravel-microsoft-graph

Laravel package for Microsoft Graph API (Microsoft365)

Home Page:https://dcblog.dev/docs/laravel-microsoft-graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Illuminate\Support\Facades\Http' not found

CISPDEVELOP opened this issue · comments

Hi, im Currently using version 3.2.0 + Laravel 6
and It throws the following error when trying to resolve the login path for miscrosoft:

Symfony\Component\Debug\Exception\FatalThrowableError Class 'Illuminate\Support\Facades\Http' not found

At MsGraph.php Line 78 :

$response = Http::withToken($accessToken->getToken())->get(self::$baseUrl.'me');

Does it seem to be related to abruptly removing support for versions lower than 10? Is there a possibility of persisting support for versions from 6+ for new package updates?
Because it is not consistent that a minor version works in a major update of the framework but its previous version does not.
(for example version v3.1.9 works correctly in Laravel 6)

If we think about the future, I suggest not removing support for old LTS versions of the framework from a minor version of the package, since here they make a 'composer update' that continues using version 3.x.x of the package, it would burst the application. I mention this because the user should not be forced to update the framework completely because the package is not compatible. Well now the alternatives would be to refactor the functionality or change the package completely.

I appreciate your help!

I've restored support for older versions https://github.com/dcblogdev/laravel-microsoft-graph/releases/tag/v3.2.6

I'm going to do a new major version release that drops support for anything less then Laravel 10.