Skip to content

Call to undefined function VoyagerBread\Commands\studly_case() #11

@loooping-old

Description

@loooping-old

I need create migration and seeder for my bread, when I run:

bash-5.0# php artisan voyager:bread my_bread --migration

I have this error

Making BREAD

   Symfony\Component\Debug\Exception\FatalThrowableError  : Call to undefined function VoyagerBread\Commands\studly_case()

  at /var/www/html/vendor/voyager-bread-generator/src/Commands/BreadGenerator.php:104
    100|      * @return string
    101|      */
    102|     protected function getNameInput()
    103|     {
  > 104|         return trim(studly_case($this->argument('name')));
    105|     }
    106| 
    107|     /**
    108|      * Create a migration file for the model.

  Exception trace:

  1   VoyagerBread\Commands\BreadGenerator::getNameInput()
      /var/www/html/vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php:54

  2   Illuminate\Console\GeneratorCommand::handle()
      /var/www/html/vendor/voyager-bread-generator/src/Commands/BreadGenerator.php:35

  Please use the argument -v to see more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions