From e9d3b9dcdea358ba353b416e62dcf0c56cc389f9 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 11 Feb 2025 13:38:22 -0800 Subject: [PATCH] Migrate Form::open and Form::close in manage custom fields view --- resources/views/custom_fields/index.blade.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/views/custom_fields/index.blade.php b/resources/views/custom_fields/index.blade.php index 5f892b272f..551a96a457 100644 --- a/resources/views/custom_fields/index.blade.php +++ b/resources/views/custom_fields/index.blade.php @@ -87,13 +87,15 @@ @endcan @can('delete', $fieldset) - {{ Form::open(['route' => array('fieldsets.destroy', $fieldset->id), 'method' => 'delete','style' => 'display:inline-block']) }} +
+ {{ method_field('DELETE') }} + @csrf @if($fieldset->models->count() > 0) @else @endif - {{ Form::close() }} +
@endcan @@ -192,7 +194,9 @@ - {{ Form::open(array('route' => array('fields.destroy', $field->id), 'method' => 'delete', 'style' => 'display:inline-block')) }} +
+ {{ method_field('DELETE') }} + @csrf @can('update', $field) @@ -214,7 +218,7 @@ @endif @endcan - {{ Form::close() }} +