Merge branch 'master' of https://github.com/koselig/library
Diff
src/Auth/WordpressGuard.php | 1 +
src/Hashing/WordpressHasher.php | 3 +--
src/Models/Post.php | 3 ++-
src/Routing/Routing.php | 1 -
src/Routing/RoutingServiceProvider.php | 1 -
5 files changed, 4 insertions(+), 5 deletions(-)
@@ -105,6 +105,7 @@ class WordpressGuard implements StatefulGuard
{
if ($this->validate($credentials)) {
$this->setUser($this->lastAttempted);
return true;
}
@@ -16,9 +16,8 @@ class WordpressHasher implements HasherContract
*
* @param string $value
* @param array $options
* @return string
*
* @throws \RuntimeException
* @return string
*/
public function make($value, array $options = [])
{
@@ -58,7 +58,7 @@ class Post extends Model
*/
public function getMeta($key = null)
{
/**
/*
* @var Collection
*/
$meta = $this->meta;
@@ -67,6 +67,7 @@ class Post extends Model
$meta = $meta->whereIn('meta_key', $key);
} elseif (is_string($key)) {
$meta = $meta->where('meta_key', $key)->first();
return $meta ? $meta->meta_value : null;
}
@@ -3,7 +3,6 @@ namespace Koselig\Routing;
use Illuminate\Container\Container;
use Illuminate\Support\Facades\Route;
use Koselig\Routing\Route as KoseligRoute;
class Routing
{
@@ -3,7 +3,6 @@ namespace Koselig\Routing;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
use Koselig\Routing\Routing;
/**
* Provides routing methods for Wordpress-related routes.