Sleimanx2\Plastic\Mappings\Mappings::reset PHP Méthode

reset() public méthode

Remove all mapping logs from the repository.
public reset ( )
    public function reset()
    {
        $this->table()->truncate();
    }

Usage Example

Exemple #1
0
 /**
  * Execute the console command.
  */
 public function handle()
 {
     if (!$this->confirmToProceed()) {
         return;
     }
     $this->mappings->setSource($this->option('database'));
     $this->mappings->reset();
     $this->comment('Mapping repository reset successfully');
 }