fixed migrations, changed settings to global settings, changed image list to have a "delete all" button instead of "create", fixed printing, added imagick for printing.

This commit is contained in:
2025-08-26 10:39:18 +02:00
parent 44dd0f2867
commit 9b1f6a479f
69 changed files with 17232 additions and 1263 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class GetPrinterSetting extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'setting:get-printer';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Get the raw value of the \'selected_printer\' setting.';
/**
* Execute the console command.
*/
public function handle()
{
$setting = \App\Models\Setting::where('key', 'selected_printer')->first();
if ($setting) {
$this->info('Raw value of \'selected_printer\' setting:');
$this->info(json_encode($setting->value, JSON_PRETTY_PRINT)); // Assuming \'value\' column holds the data
} else {
$this->info('\'selected_printer\' setting not found.');
}
}
}