diff --git a/src/Eusonlito/LaravelMeta/Meta.php b/src/Eusonlito/LaravelMeta/Meta.php index ec7adf9..effc43e 100644 --- a/src/Eusonlito/LaravelMeta/Meta.php +++ b/src/Eusonlito/LaravelMeta/Meta.php @@ -31,6 +31,20 @@ class Meta */ private $processed = []; + /** + * @var object; + */ + private static $instance; + + /** + * @param array $config + * @return object + */ + public static function getInstance(array $config = []) + { + return static::$instance ?: (static::$instance = new self($config)); + } + /** * @param array $config * @return this