<?php
namespace App\Http\Controllers;
use Illuminate\Contracts\Auth\Guard;
use Laravel\Socialite\Contracts\Factory as Socialite;
use App\Repositories\UserRepository;
class SocialController extends Controller
{
/**
* Redirect the user to the GitHub authentication page.
*
* @return Response
*/
private $socialite;
private $auth;
private $users;
public function __construct(Socialite $socialite, Guard $auth, UserRepository $users) {
$this->socialite = $socialite;
$this->users = $users;
$this->auth = $auth;
}
}
This is my controller. While I'm loading this controller it showing an error like
"ReflectionException in Container.php line 791: Class App\Repositories\UserRepository does not exist".
Can anyone suggest me a solution?