{"id":4182,"date":"2021-09-20T18:31:37","date_gmt":"2021-09-20T16:31:37","guid":{"rendered":"https:\/\/staging.mainetcare.de\/?post_type=techdoc&#038;p=4182"},"modified":"2026-07-14T11:35:16","modified_gmt":"2026-07-14T09:35:16","slug":"variable-in-blade-component-not-available","status":"publish","type":"gartenschuppen","link":"https:\/\/mainetcare.de\/en\/gartenschuppen\/variable-in-blade-komponente-nicht-verfuegbar\/","title":{"rendered":"Variable not available in blade component"},"content":{"rendered":"<h3>Problem:<\/h3>\n<p>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 does not appear to have been passed.<\/p>\n<h3>Solution:<\/h3>\n<p>The error may lie in the use of an \"underscore\" in the variable name.<\/p>\n<p>Example: instead of \"active_record\", use \"active-record\" (in the blade template) or \"ActiveRecord\" (in the constructor of the class, if available).<\/p>\n<h3>Source:<\/h3>\n<p><a href=\"https:\/\/laravel.com\/docs\/8.x\/blade#casing\">https:\/\/laravel.com\/docs\/8.x\/blade#casing<\/a><\/p>\n<p>Why do people only ever watch documentaries when the keyboard has already been smashed?<\/p>","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"class_list":["post-4182","gartenschuppen","type-gartenschuppen","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/mainetcare.de\/en\/wp-json\/wp\/v2\/gartenschuppen\/4182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mainetcare.de\/en\/wp-json\/wp\/v2\/gartenschuppen"}],"about":[{"href":"https:\/\/mainetcare.de\/en\/wp-json\/wp\/v2\/types\/gartenschuppen"}],"wp:attachment":[{"href":"https:\/\/mainetcare.de\/en\/wp-json\/wp\/v2\/media?parent=4182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}