fix conflicts.
This commit is contained in:
commit
0f5ffdfb56
|
@ -140,6 +140,7 @@
|
||||||
|
|
||||||
'aliases' => array(
|
'aliases' => array(
|
||||||
'Auth' => 'Laravel\\Auth',
|
'Auth' => 'Laravel\\Auth',
|
||||||
|
'Authenticator' => 'Laravel\\Auth\\Drivers\\Driver',
|
||||||
'Asset' => 'Laravel\\Asset',
|
'Asset' => 'Laravel\\Asset',
|
||||||
'Autoloader' => 'Laravel\\Autoloader',
|
'Autoloader' => 'Laravel\\Autoloader',
|
||||||
'Blade' => 'Laravel\\Blade',
|
'Blade' => 'Laravel\\Blade',
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
use Laravel\Config;
|
use Laravel\Config;
|
||||||
use Laravel\Session;
|
use Laravel\Session;
|
||||||
use Laravel\Crypter;
|
use Laravel\Crypter;
|
||||||
|
use Laravel\Database\Eloquent\Model as Eloquent;
|
||||||
|
|
||||||
abstract class Driver {
|
abstract class Driver {
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,29 @@ public function retrieve($id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Login the user assigned to the given token.
|
||||||
|
*
|
||||||
|
* The token is typically a numeric ID for the user.
|
||||||
|
*
|
||||||
|
* @param mixed $token
|
||||||
|
* @param bool $remember
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function login($token, $remember = false)
|
||||||
|
{
|
||||||
|
// if the token is an Eloquent model get the primary key
|
||||||
|
if ($token instanceof \Eloquent) $token = $token->get_key();
|
||||||
|
|
||||||
|
$this->token = $token;
|
||||||
|
|
||||||
|
$this->store($token);
|
||||||
|
|
||||||
|
if ($remember) $this->remember($token);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempt to log a user into the application.
|
* Attempt to log a user into the application.
|
||||||
*
|
*
|
||||||
|
|
|
@ -44,7 +44,7 @@ public static function has($name)
|
||||||
*/
|
*/
|
||||||
public static function get($name, $default = null)
|
public static function get($name, $default = null)
|
||||||
{
|
{
|
||||||
if (isset(static::$jar[$name])) return static::$jar[$name];
|
if (isset(static::$jar[$name])) return static::$jar[$name]['value'];
|
||||||
|
|
||||||
return array_get(Request::foundation()->cookies->all(), $name, $default);
|
return array_get(Request::foundation()->cookies->all(), $name, $default);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue