for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace DoeSangue\Http\Controllers\Auth;
use DoeSangue\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Socialite;
use DoeSangue\User;
class AuthController extends Controller
{
public function __construct()
//
}
public function redirectToProvider($provider)
return Socialite::driver($provider)->redirect();
public function handleProviderCallback($provider)
$user = Socialite::driver($provider)->user();
// Getting the data from Google+
$data = [
'name' => $user->getName(),
'email' => $user->getEmail(),
'username' => strtolower($user->getName())
];
// Created a user with requested data
Auth::login(User::firstOrCreate($data));
firstOrCreate()
DoeSangue\User
create()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
// redirect to home
return redirect()->route('home');
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.