public function create(array $data)
 {
     $data['user']['password'] = bcrypt(123456);
     $user = $this->userRepository->create($data['user']);
     $data['user_id'] = $user->id;
     $this->clientRepository->create($data);
 }
 public function update(array $data, $id)
 {
     $client = $this->client->update($data, $id);
     $this->user->update($data["user"], $client->user->id);
 }
 public function index(ClientRepository $repository)
 {
     $clients = $repository->paginate(20);
     return view('admin.clients.index', compact('clients'));
 }