Комментарии:
:position and ':index doesnt work to me, but :attribute works, can you help me?
Ответитьthank you, i've been searching for this
Ответитьsir, i want to ask, is it possible to insert many data without looping in nested relationship, for example there is a test, test can have multiple question, and question can have multiple answer
ОтветитьNice tip. Thanks 👍
But it does not work if attribute is nested array with invokeable rule. Ex:
I have this validation:
'replacements.*' => [
new CardIdValidator([new Action(), new Power()]),
'exists:keywords,id',
'distinct'
]
and this will not work:
public function attributes(): array
{
return [
'replacements.*' => 'replacements #:position',
];
}
how would you approach something like this scenario you a products array like shown in this video but with an id and qty and you want to have a rule that would take both attributes id,qty to check in db for same available having a custom rule or an inline one would be invoked against the attribute & value it's called on but how do we get access to the whole object here.
ОтветитьKeep going 😍
Ответитьit feels like you are always following the same issues I am having in my project! Thanks for this!
ОтветитьI have a problem in laravel project in search results page I want to add sort by select input but it's outside the search form so how do I take input from it and apply it to the current variable that is search results without needing to write the same code of search again
ОтветитьHow can we do this for dynamic row fields?
ОтветитьThank you
ОтветитьHi, I started my career almost 1 year ago as a developer by seeing your feed. I actually like the way you are keeping us up to date with the latest features. But, May I know where I could get that information on my own. Because I found it harder to search on official documentation like these smaller but useful features ?
Ответить