Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Command Schedule Not Being Registered #406

@surgiie

Description

@surgiie

I cannot seem to get scheduler to register any commands, it also seems like it happens on a fresh install

Reproducing Steps

Following the install instructions on the docs:

composer create-project --prefer-dist laravel-zero/laravel-zero movie-cli

Make command to test with:

cd movie-cli && php application make:command ExampleCommand

Add schedule on the command:

   /**
     * Define the command's schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    public function schedule(Schedule $schedule): void
    {
        $schedule->command(static::class)->everyMinute();
    }

Listing schedule shows it has not been registered:

php application schedule:list
# No scheduled tasks have been defined.

Unsure if this is a bug or if im just missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions