I have a view with a form in which I have users fill in attributes of the model. When submitting, I want the users to have the possibility to either publish the model or to save it as a draft. The difference basically only is a boolean “draft” that needs to be set in the database. As I am usually
Tag: parameter-passing
Laravel custom component parameter parsing issue
In my Laravel (7.x) application. I am trying to create a component for links: Component: And getting this issue: However, if I do this, then it works: I am not a fan of declaring the variables just for single use, I like to pass the value directly. Therefore, I prefer the first method. Why is this simple code not working..?