@php $oldCateIds = old('cate_ids', $blogPostObj->cate_ids); // Handle both array (from form submission) and string (from database) $cate_ids = is_array($oldCateIds) ? $oldCateIds : explode(',', $oldCateIds); $strlen_meta_title = strlen($blogPostObj->meta_title); $strlen_meta_keywords = strlen($blogPostObj->meta_keywords); $strlen_meta_description = strlen($blogPostObj->meta_description); $strlen_canonical_url = strlen($blogPostObj->canonical_url); @endphp
If Canonical URL is same as Page URL then Leave this field empty,
in this case Canonical URL will be handled programmatically