/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Client::truncate();
     factory(Client::class, 10)->create();
 }
 public function update(Request $request, $id)
 {
     $this->client->find($id)->update($request->all());
     return $this->client->find($id);
 }