public function __construct(Google_Client $client = null) { $this->client = $client; if ($this->client) { $this->client->setClientId(Config::extra('social.google.client_id')); $this->client->setClientSecret(Config::extra('social.google.client_secret')); $this->client->setRedirectUri(route('google')); $this->client->setScopes(Config::extra('social.google.scopes')); } $this->defaults = ['role' => 'normal', 'national_id' => '', 'pass' => 'nothing', 'active' => 1, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]; }
function __construct() { $fb = new Facebook(['app_id' => Config::extra('social.facebook.app_id'), 'app_secret' => Config::extra('social.facebook.app_secret'), 'default_graph_version' => Config::extra('social.facebook.default_graph_version')]); $this->helper = $fb->getRedirectLoginHelper(); }
public function __construct() { $this->fb = new Facebook(['app_id' => Config::extra('social.facebook.app_id'), 'app_secret' => Config::extra('social.facebook.app_secret'), 'default_graph_version' => Config::extra('social.facebook.default_graph_version')]); $this->defaults = ['role' => 'normal', 'national_id' => '', 'pass' => 'nothing', 'active' => 1, 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()]; }
public static function getHash() { return Session::get(Config::extra('session.remember_me')); }