Mehmet K.
Custom Modal form closes as soon as I click on it.
In fact, when I add a button, it acts as an action and tries to save automatically. I don't want this, since there is a button in the tab, it acts as if the process is over and my mode closes.
11 replies
How can I save data in custom modal?
->action(function (array $data, Post $record): void {
$record->author()->associate($data['authorId']);
$record->save();
}) I added it this way, but when I pressed send from the inputs I added, no data came out.
7 replies