mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
- Added status column to the fixed plan table
- Ability to delete fixed plan if there isn't any subscribed user - Improved error handling in subscription module
This commit is contained in:
@@ -76,6 +76,9 @@ class Kernel extends ConsoleKernel
|
||||
->daily()
|
||||
->at('00:20');
|
||||
|
||||
$schedule->command('config:clear')
|
||||
->daily();
|
||||
|
||||
$schedule->call(fn () => cache()->set('latest_cron_update', now()->toString()))
|
||||
->everyMinute();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace Domain\Maintenance\Controllers;
|
||||
|
||||
use Artisan;
|
||||
use DB;
|
||||
use Schema;
|
||||
use Storage;
|
||||
@@ -24,6 +25,9 @@ class UpgradeSystemController extends Controller
|
||||
{
|
||||
ini_set('max_execution_time', -1);
|
||||
|
||||
// Clear config
|
||||
Artisan::call('config:clear');
|
||||
|
||||
// Get already updated versions
|
||||
$alreadyUpdated = Schema::hasTable('app_updates')
|
||||
? AppUpdate::all()
|
||||
|
||||
@@ -24,21 +24,21 @@ class StoreStorageCredentialsController
|
||||
// Abort in demo mode
|
||||
abort_if(is_demo(), 204, 'Done.');
|
||||
|
||||
// Test s3 credentials
|
||||
if ($request->input('storage.driver') !== 'local') {
|
||||
try {
|
||||
// connect to the s3
|
||||
($this->testS3Connection)(S3CredentialsData::fromRequest($request));
|
||||
} catch (S3Exception | UnableToWriteFile $error) {
|
||||
return response([
|
||||
'type' => 's3-connection-error',
|
||||
'title' => 'S3 Connection Error',
|
||||
'message' => $error->getMessage(),
|
||||
], 401);
|
||||
}
|
||||
}
|
||||
|
||||
if (! app()->runningUnitTests()) {
|
||||
// Test s3 credentials
|
||||
if ($request->input('storage.driver') !== 'local') {
|
||||
try {
|
||||
// connect to the s3
|
||||
($this->testS3Connection)(S3CredentialsData::fromRequest($request));
|
||||
} catch (S3Exception | UnableToWriteFile $error) {
|
||||
return response([
|
||||
'type' => 's3-connection-error',
|
||||
'title' => 'S3 Connection Error',
|
||||
'message' => $error->getMessage(),
|
||||
], 401);
|
||||
}
|
||||
}
|
||||
|
||||
$drivers = [
|
||||
'local' => [
|
||||
'FILESYSTEM_DISK' => 'local',
|
||||
|
||||
Reference in New Issue
Block a user