From 096e904cec25745ef09337fce9e2cb800e2a6ca0 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Sat, 9 Sep 2023 21:44:47 +0200 Subject: [PATCH] fix ricerca ricevute --- code/app/Http/Controllers/ReceiptsController.php | 2 +- code/database/seeders/DatabaseSeeder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/app/Http/Controllers/ReceiptsController.php b/code/app/Http/Controllers/ReceiptsController.php index 743f46d2..86d8096a 100644 --- a/code/app/Http/Controllers/ReceiptsController.php +++ b/code/app/Http/Controllers/ReceiptsController.php @@ -157,7 +157,7 @@ public function search(Request $request) 'identifier' => $list_identifier, 'items' => $elements, 'legend' => (object)[ - 'class' => 'Receipt', + 'class' => Receipt::class, ], ]); diff --git a/code/database/seeders/DatabaseSeeder.php b/code/database/seeders/DatabaseSeeder.php index e01c089e..f4da3f9e 100644 --- a/code/database/seeders/DatabaseSeeder.php +++ b/code/database/seeders/DatabaseSeeder.php @@ -164,7 +164,7 @@ public function run() $this->resetAll(); $gas = Gas::create([ - 'id' => str_slug('Senza Nome'), + 'id' => env('DB_DATABASE'), 'name' => 'Senza Nome', ]);