- flush cache after language upgrade

- Gateway fix
- extended language editor with textarea
This commit is contained in:
Peter Papp
2021-04-06 10:27:02 +02:00
parent 90c0466cd0
commit 131ae8109f
4 changed files with 37 additions and 15 deletions

View File

@@ -27,7 +27,6 @@ class AppFunctionsController extends Controller
* @var array
*/
private $blacklist = [
'contact_email',
'purchase_code',
'license',
];

View File

@@ -17,20 +17,14 @@ use Schema;
class Maintenance extends Controller
{
/**
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function __construct()
{
// Check admin permission
Gate::authorize('maintenance');
}
/**
* Start maintenance mode
*/
public function up()
{
// Check admin permission
Gate::authorize('maintenance');
$command = Artisan::call('up');
if ($command === 0) {
@@ -43,6 +37,9 @@ class Maintenance extends Controller
*/
public function down()
{
// Check admin permission
Gate::authorize('maintenance');
$command = Artisan::call('down');
if ($command === 0) {
@@ -58,9 +55,14 @@ class Maintenance extends Controller
*/
public function upgrade_translations()
{
// Check admin permission
Gate::authorize('maintenance');
resolve(LanguageService::class)
->upgrade_language_translations();
return response('Done.', 201);
}
@@ -69,6 +71,9 @@ class Maintenance extends Controller
*/
public function upgrade_database()
{
// Check admin permission
Gate::authorize('maintenance');
$command = Artisan::call('migrate', [
'--force' => true
]);