From d9f04b4e44a77cfe1fdb26b6ee881f4a2c3511ee Mon Sep 17 00:00:00 2001 From: Flavio Barachino Date: Tue, 30 May 2023 11:05:06 +0200 Subject: [PATCH] Risolto problema di chiamata funzione con nome riservato nella parte di tags --- app/Http/Controllers/TagController.php | 2 +- app/Models/tag.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.php index f50ce49..7751209 100644 --- a/app/Http/Controllers/TagController.php +++ b/app/Http/Controllers/TagController.php @@ -44,7 +44,7 @@ class TagController extends Controller } public function deleteTag($id){ - tag::delete($id); + tag::deleteTag($id); return redirect(route('tags')); } } diff --git a/app/Models/tag.php b/app/Models/tag.php index 40ea489..f4e2991 100644 --- a/app/Models/tag.php +++ b/app/Models/tag.php @@ -34,7 +34,7 @@ class tag extends Model } - public static function delete($id) + public static function deleteTag($id) { DB::table('tags') //->where('id','=',$id)