Hello i'm saving multi records with insert but it is not adding created_at and updated_at it's null
public function store(Request $request)
{
CategoryUser::insert(
collect($request->userId)
->crossJoin($request->categoryId)
->map(
fn ($pair) => ['user_id' => $pair[0], 'category_id' => $pair[1]]
)
->all()
);
return redirect()->back();
}
so how can i add created and update time() or something like this?