We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
compileReadonly
1 parent 753e9fd commit c1bb5edCopy full SHA for c1bb5ed
src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
@@ -337,4 +337,15 @@ protected function compileDisabled($condition)
337
{
338
return "<?php if{$condition}: echo 'disabled'; endif; ?>";
339
}
340
+
341
+ /**
342
+ * Compile a readonly block into valid PHP.
343
+ *
344
+ * @param string $condition
345
+ * @return string
346
+ */
347
+ protected function compileReadonly($condition)
348
+ {
349
+ return "<?php if{$condition}: echo 'readonly'; endif; ?>";
350
+ }
351
0 commit comments