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