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:
37
app/Console/Commands/GetPrinterSetting.php
Normal file
37
app/Console/Commands/GetPrinterSetting.php
Normal 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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user