@csrf @php $columns = array_filter( array_map('trim', explode(',', $model_description)), fn($col) => $col !== 'id' && $col !== 'created_at' && $col !== 'updated_at' ); @endphp @foreach($columns as $col) @php $label = ucwords(str_replace('_', ' ', $col)); $pattern = str_contains($col, 'name') ? '^[a-zA-Z\s]*$' : null; @endphp @endforeach
CANCEL Create