Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Laravel 10.*] Artisan commands not working #470

Open
fozooni opened this issue Aug 6, 2023 · 0 comments
Open

[Laravel 10.*] Artisan commands not working #470

fozooni opened this issue Aug 6, 2023 · 0 comments

Comments

@fozooni
Copy link

fozooni commented Aug 6, 2023

Hello dear,
I just create new laravel project and install laravel-selfupdater.
Everything works perfectly and I thank you for that.
But non of artisan commands working in self-updater.php at all, I don't have any idea how can I fix this.
Commands are executed directly through the console without any problems.

self-updater.php file:

    'artisan_commands' => [
        'pre_update' => [
//            'tkt:pre-update' => [
//                'class' => \App\Console\Commands\PreUpdateCommand::class,
//                'params' => []
//            ]
        ],
        'post_update' => [
            'tkt:post-update' => [
                'class' => \App\Console\Commands\UpdateCommand::class,
                'params' => []
            ]
        ],
    ],

UpdateCommand.php file:

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;

class UpdateCommand extends Command
{
    protected $name = 'tkt:post-update';
    protected $signature = 'tkt:post-update';
    protected $description = 'Upgrade commands';
    public function handle()
    {
        Artisan::call('migrate');
    }
}

I think this should work correctly but it doesn't!
What do you think is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant