Merge branch 'master' into develop
This commit is contained in:
commit
ce39e48458
|
@ -72,7 +72,7 @@ public static function put($name, $value, $minutes = 0, $path = '/', $domain = n
|
||||||
*/
|
*/
|
||||||
public static function forget($name)
|
public static function forget($name)
|
||||||
{
|
{
|
||||||
return static::put($key, null, -60);
|
return static::put($name, null, -60);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -21,9 +21,15 @@ public static function to($url = '', $https = false, $asset = false)
|
||||||
|
|
||||||
$base = Config::get('application.url').'/'.Config::get('application.index');
|
$base = Config::get('application.url').'/'.Config::get('application.index');
|
||||||
|
|
||||||
$base = ($asset) ? str_replace('/'.Config::get('application.index'), '', $base) : $base;
|
if ($asset and Config::get('application.index') !== '')
|
||||||
|
{
|
||||||
|
$base = str_replace('/'.Config::get('application.index'), '', $base);
|
||||||
|
}
|
||||||
|
|
||||||
$base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base;
|
if ($https and strpos($base, 'http://') === 0)
|
||||||
|
{
|
||||||
|
$base = 'https://'.substr($base, 7);
|
||||||
|
}
|
||||||
|
|
||||||
return rtrim($base, '/').'/'.ltrim($url, '/');
|
return rtrim($base, '/').'/'.ltrim($url, '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue