I have this driver to upload two tables at once from a form works well but I have the question of how I can modify it so that instead of inserting in the Point table the update someone gives me a hand ?? thank you ..
public function store(Request $request)
{
$dsa = Dsa::Create($request->all());
$in = new Point;
$in->user_id = auth()->user()->id;
$in->uni = $request->get('uni');
$in->save();
return redirect()->route('dsa.edit', $dsa->id)->with('info', 'Categoría creada con éxito');
}