예제 #1
0
 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()];
 }
예제 #2
0
 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();
 }
예제 #3
0
 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()];
 }
예제 #4
0
파일: User.php 프로젝트: taekunger/kodekit
 public static function getHash()
 {
     return Session::get(Config::extra('session.remember_me'));
 }