💫Using
we are using components on every resource we build to manage the form builder, and we have a lot of methods and types for these components
Components Methods
all the components accept some methods like
Validation
you can validate your row on create/update by using this method on array
and if you like to make a row unique just use this method
to view a hint of red * on the row you can use
Reactive Input
you can hide and show any input by using condition-by-reactive methods like
->reactive()
tell the input you must hide until you get a condition. ->reactiveRow()
tell the input which row has the value that makes the current row show or hide. ->reactiveBy()
to make the row access object and it can be null if the value or reactiveRow is just string or int. ->reactiveWhere()
the condition of the selected row value like when you check the id it can be 1 or 2.
API calls on change
sometimes you need to make an API request when the select box changed we make it easy for you to do that by using ->api()
method on HasOne::class
or Relation::class
like
->api()
takes 3 args:
the row name that we will fill with data coming from API.
the model namespace or direct model to fetch data from it.
the label for the target input
Last updated