diff --git a/src/SetsProfilePhotoFromUrl.php b/src/SetsProfilePhotoFromUrl.php new file mode 100644 index 00000000..e4c8859c --- /dev/null +++ b/src/SetsProfilePhotoFromUrl.php @@ -0,0 +1,21 @@ +updateProfilePhoto(new UploadedFile($file, $name)); + } +} \ No newline at end of file diff --git a/stubs/app/Models/User.php b/stubs/app/Models/User.php index a6017904..c88333e3 100644 --- a/stubs/app/Models/User.php +++ b/stubs/app/Models/User.php @@ -6,6 +6,7 @@ use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use JoelButcher\Socialstream\HasConnectedAccounts; +use JoelButcher\Socialstream\SetsProfilePhotoFromUrl; use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Jetstream\HasProfilePhoto; use Laravel\Jetstream\HasTeams; @@ -19,6 +20,7 @@ class User extends Authenticatable use HasTeams; use HasConnectedAccounts; use Notifiable; + use SetsProfilePhotoFromUrl; use TwoFactorAuthenticatable; /**