Closed rudolfbruder closed 2 years ago
Instead of using the name property, you can use the getName
method. So remove the protected string $name = "..."
and replace it with something like this:
Haven't tested this but I think you can do:
class ShowJobsTable extends SpotlightCommand
{
protected string $name;
public function __construct()
{
$this->name = Lang::get('something');
}
}
Replacing the getName method like @jacotijssen mentioned is also possible.
Thanks works!
Hi,
Is there any way how to use laravel langs and their values in defining for the command name and description?
For me this does not work:
Thank you!