/**
  * @param ModelBuilder $mb
  */
 protected function generateRepository(ModelBuilder $mb)
 {
     $template = file_get_contents(__DIR__ . '/../../../views/template/repository.txt');
     $template = str_replace('{repositoryClass}', Str::studly($mb->getName() . 'Repository'), $template);
     $template = str_replace('{modelClass}', Str::studly($mb->getName()), $template);
     $filename = app_path('repositories/' . Str::studly($mb->getName()) . 'Repository.php');
     // Write the new repository file to the models folder
     @file_put_contents($filename, $template);
 }