public function register()
{
User::observe(UserObserver::class);
}
public function updated(User $user)
{
dd('test');
}
public function update(UpdateRequest $request, User $user)
{
return response()->json([
'updated' => $user->update($request->validated())
]);
}