Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
bramr94 committed Apr 3, 2024
1 parent 6727934 commit f95447b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/FilamentSocialitePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace DutchCodingCompany\FilamentSocialite;

use App\Models\User;
use Closure;
use DutchCodingCompany\FilamentSocialite\Exceptions\ProviderNotConfigured;
use Filament\Contracts\Plugin;
Expand Down
3 changes: 2 additions & 1 deletion src/Models/SocialiteUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Laravel\Socialite\Contracts\User as SocialiteUserContract;
use DutchCodingCompany\FilamentSocialite\Facades\FilamentSocialite;

/**
* @property int $user_id
Expand All @@ -30,7 +31,7 @@ class SocialiteUser extends Model implements FilamentSocialiteUserContract
*/
public function user(): BelongsTo
{
return $this->belongsTo(Filament::getCurrentPanel()->getPlugin('filament-socialite')->getUserModelClass());
return $this->belongsTo(FilamentSocialite::getPlugin()->getUserModelClass());
}

public function getUser(): Authenticatable
Expand Down
1 change: 1 addition & 0 deletions src/Traits/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace DutchCodingCompany\FilamentSocialite\Traits;

use App\Models\User;
use DutchCodingCompany\FilamentSocialite\Exceptions\ImplementationException;
use DutchCodingCompany\FilamentSocialite\Models\Contracts\FilamentSocialiteUser as FilamentSocialiteUserContract;
use DutchCodingCompany\FilamentSocialite\Models\SocialiteUser;
Expand Down

0 comments on commit f95447b

Please sign in to comment.