Laravel - Blade Templates - Escaping Attribute Rendering
Since some JavaScript frameworks such as Alpine.js also use colon-prefixed attributes, you may use a double colon (::
) prefix to inform Blade that the attribute is not a PHP expression. For example, given the following component:
Submit
The following HTML will be rendered by Blade: