Morning guys, I'm searching on how to call a function of a controller in my seeder file.
Account Controller
public function createCompte() {
    //generate an account number
        return $numcompte;
    }
}
seeder
public function run(){
    $compteController = new CompteController;
    $numcompte = $this->compteController->createCompte();
    $data_client = [ 
           //other data generate with faker
            'num_cmpte_client' => $numcompte ,
           
        ];
    $id_client = $this->db->table('client')->insert($tab);
 }
 
     
    