return Socialite::driver($drive)->with(['data' => ['name' => 'AA']])->redirect(); LARAVEL with code example Example: laravel socialite composer require laravel/socialite