Kresimir Plese
Kresimir Plese

Reputation: 3665

How to check if Laravel command is still running?

I've searched around and I cannot find the answer.

So, is there a way to check if the custom Laravel command that we have started still running, or it has finished it's job?

Upvotes: 3

Views: 3697

Answers (1)

Rohan
Rohan

Reputation: 13811

You can always log information into the log files when running certain commands that you wish to confirm ran or not.

You can place the log code directly inside your command's handle method.

    public function handle()
    {
        // Handle some command logic...

        Log::info('This is some useful information about the command that just ran its course.');
    }

Upvotes: 1

Related Questions