芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/LazilyRefreshDatabase.php
app->make('db'); $callback = function () { if (RefreshDatabaseState::$lazilyRefreshed) { return; } RefreshDatabaseState::$lazilyRefreshed = true; if (property_exists($this, 'mockConsoleOutput')) { $shouldMockOutput = $this->mockConsoleOutput; $this->mockConsoleOutput = false; } $this->baseRefreshDatabase(); if (property_exists($this, 'mockConsoleOutput')) { $this->mockConsoleOutput = $shouldMockOutput; } }; $database->beforeStartingTransaction($callback); $database->beforeExecuting($callback); $this->beforeApplicationDestroyed(function () { RefreshDatabaseState::$lazilyRefreshed = false; }); } }