fixed aliasing
This commit is contained in:
parent
d1a6eedc6d
commit
78c8ebadc2
@ -22,7 +22,7 @@ class Meta extends Model implements MetaContract
|
|||||||
*
|
*
|
||||||
* @param array $args
|
* @param array $args
|
||||||
*
|
*
|
||||||
* @return callable
|
* @return Model
|
||||||
*/
|
*/
|
||||||
public static function create( array $args = [] ){
|
public static function create( array $args = [] ){
|
||||||
$args['meta'] = (isset($args['meta'])) ? ((gettype($args['meta']) === 'array') ? serialize($args['meta']) : $args['meta']) : serialize([]);
|
$args['meta'] = (isset($args['meta'])) ? ((gettype($args['meta']) === 'array') ? serialize($args['meta']) : $args['meta']) : serialize([]);
|
||||||
|
@ -21,19 +21,9 @@ class MetaServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$this->app->bind(MetaContract::class, 'Meta');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
|
||||||
* Get the services provided by the provider.
|
$loader->alias('Meta', 'Glmdev\Meta\Meta');
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function provides()
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
MetaContract::class,
|
|
||||||
'Meta',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user