mirror of
https://github.com/superhelio/commands.git
synced 2026-02-02 01:47:32 +00:00
Updated requirements
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Superhelio\Commands\Commands;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Gozer extends Command
|
||||
{
|
||||
@@ -165,7 +166,7 @@ class Gozer extends Command
|
||||
|
||||
public function getDatabasePrefix()
|
||||
{
|
||||
return trim(DB::getTablePrefix());
|
||||
return trim(DB::connection()->getTablePrefix());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -188,7 +189,7 @@ class Gozer extends Command
|
||||
$prefix = $this->dbPrefix;
|
||||
|
||||
return collect($tables)->reject(function ($table) use ($prefix) {
|
||||
return !starts_with($table, $prefix);
|
||||
return !Str::startsWith($table, $prefix);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,5 +48,7 @@ class Reload extends Command
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class ServiceProvider extends BaseServiceProvider
|
||||
private function registerReloader()
|
||||
{
|
||||
$this->app->singleton('command.superhelio.reload', function ($app) {
|
||||
return $app['Superhelio\Commands\Commands\Reload'];
|
||||
return $app[ \Superhelio\Commands\Commands\Reload::class ];
|
||||
});
|
||||
$this->commands('command.superhelio.reload');
|
||||
}
|
||||
@@ -44,7 +44,7 @@ class ServiceProvider extends BaseServiceProvider
|
||||
private function registerGozer()
|
||||
{
|
||||
$this->app->singleton('command.superhelio.gozer', function ($app) {
|
||||
return $app['Superhelio\Commands\Commands\Gozer'];
|
||||
return $app[ \Superhelio\Commands\Commands\Gozer::class ];
|
||||
});
|
||||
$this->commands('command.superhelio.gozer');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user