diff --git a/composer.json b/composer.json index 58413aa..d8eb6e5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "phoenix/eloquent-meta", + "name": "thescopogroup/eloquent-meta", "description": "Attach meta data to Eloquent models", "keywords": ["eloquent", "laravel", "meta"], "homepage": "https://github.com/phoenix-labs/eloquent-meta", @@ -16,7 +16,7 @@ ], "require": { "php": ">=5.6.4", - "illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*" + "illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0" }, "require-dev": { "phpunit/phpunit": "4.4.*" diff --git a/src/Phoenix/EloquentMeta/CreateMetaTableCommand.php b/src/Phoenix/EloquentMeta/CreateMetaTableCommand.php index 721a890..0100022 100644 --- a/src/Phoenix/EloquentMeta/CreateMetaTableCommand.php +++ b/src/Phoenix/EloquentMeta/CreateMetaTableCommand.php @@ -3,6 +3,7 @@ use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputArgument; use Illuminate\Filesystem\Filesystem; +use Illuminate\Support\Str; class CreateMetaTableCommand extends Command { @@ -37,7 +38,7 @@ public function __construct(FileSystem $filesystem) * * @return mixed */ - public function fire() + public function handle() { $table_name = strtolower($this->argument('name')); $migration = "create_{$table_name}_table"; @@ -66,7 +67,7 @@ public function fire() $template = $this->fs->get($template_path); // Replace what is necessary - $classname = 'Create'.studly_case(ucfirst($table_name)).'Table'; + $classname = 'Create' . Str::studly(ucfirst($table_name)) . 'Table'; $contents = str_replace("'__meta__'", "'".$table_name."'", $template); $contents = str_replace('SchemaTemplate', $classname, $contents);