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 DoeSangue\Models\User;
use Illuminate\Support\Facades\Auth;
use Socialite;
class AuthController extends Controller
{
public function __construct()
$this->middleware('guest', ['except' => 'logout']);
}
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' => '',
'password' => bcrypt('secret'),
];
// Created a user with requested data
Auth::login(User::firstOrCreate($data));
firstOrCreate()
DoeSangue\Models\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');
public function logout() {
if (\Auth::check()) \Auth::logout();
return redirect('/');
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.