StartTechnical documentation / snippetsProblem and solutionVariable not available in blade component

Variable not available in blade component


The parameter transfer of a blade attribute does not work, the variable in the component is empty. There is no error message, but the variable seems not to have been passed.


Possibly the error lies in the use of an "underscore" in the variable name.

Example: instead of "active_record", use "active-record" (in the blade template) or "ActiveRecord" (in the constructor of the class, if available).


Why do people only watch documentaries when their keyboards are already smashed?

Posted in

We will be happy to call you back.

Scroll to Top