Skip to content
Advertisement

Argument time does not exist on multi argument console command

Ι made the following command in my laravel project:

JavaScript

And once I run the following command in console:

JavaScript

I get the following error:

JavaScript

Do you know why I get the error and how I can fix it?

Advertisement

Answer

The problem is your signature.

The current signature is:

JavaScript

Meaning your parameters are:

  • time: Time that goverment closes the restaurants
  • ids*: The list of store Ids that close on the provided time

So in order to be accessible you should fetch them using the following argument calls:

JavaScript

And YES it is kinda PITA therefore in order your previous code to work:

JavaScript

Place a space between param and : resulting this command signature:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement