Skip to content

Error: Class not found when running custom command in Winter CMS #941

Answered by 01Kuzma
01Kuzma asked this question in Q&A
Discussion options

You must be logged in to vote

It seems, that this was the issue namespace Kuzma\Employees\Console\Commands; :)

it should look like:

<?php
namespace Kuzma\Employees\Console\Commands;

use Winter\Storm\Console\Command;
use Kuzma\Employees\Models\Employee;

class CheckDatesCommand extends Command
{
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 01Kuzma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants