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)