Use Config::get() instead of config() helper.
This commit is contained in:
parent
f10de2fc10
commit
2b5cf64ddf
|
|
@ -119,7 +119,7 @@ class UpdateManager
|
|||
*/
|
||||
public function update()
|
||||
{
|
||||
$firstUp = !Schema::hasTable(config('database.migrations'));
|
||||
$firstUp = !Schema::hasTable(Config::get('database.migrations'));
|
||||
if ($firstUp) {
|
||||
$this->repository->createRepository();
|
||||
$this->note('Migration table created');
|
||||
|
|
@ -337,7 +337,7 @@ class UpdateManager
|
|||
}
|
||||
}
|
||||
|
||||
Schema::dropIfExists(config('database.migrations'));
|
||||
Schema::dropIfExists(Config::get('database.migrations'));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class DbJobs extends Migration
|
|||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create(config('queue.connections.database.table'), function (Blueprint $table) {
|
||||
Schema::create(Config::get('queue.connections.database.table'), function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->bigIncrements('id');
|
||||
$table->string('queue');
|
||||
|
|
@ -22,6 +22,6 @@ class DbJobs extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists(config('queue.connections.database.table'));
|
||||
Schema::dropIfExists(Config::get('queue.connections.database.table'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class DbFailedJobs extends Migration
|
|||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create(config('queue.failed.table'), function (Blueprint $table) {
|
||||
Schema::create(Config::get('queue.failed.table'), function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id');
|
||||
$table->text('connection');
|
||||
|
|
@ -19,6 +19,6 @@ class DbFailedJobs extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists(config('queue.failed.table'));
|
||||
Schema::dropIfExists(Config::get('queue.failed.table'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class DbSystemTimestampFix extends Migration
|
|||
{
|
||||
return [
|
||||
'deferred_bindings',
|
||||
config('queue.failed.table') => 'failed_at',
|
||||
Config::get('queue.failed.table') => 'failed_at',
|
||||
'system_files',
|
||||
'system_event_logs',
|
||||
'system_mail_layouts',
|
||||
|
|
|
|||
Loading…
Reference in New Issue