Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/ObjectCommand.php
<?php | <?php | ||||
namespace App\Console; | namespace App\Console; | ||||
use Illuminate\Support\Facades\Cache; | use Illuminate\Support\Facades\Cache; | ||||
abstract class ObjectCommand extends Command | abstract class ObjectCommand extends Command | ||||
{ | { | ||||
/** | /** | ||||
* Specify a command prefix, if any. | * Specify a command prefix, if any. | ||||
* | * | ||||
* For example, \App\Console\Commands\Scalpel\User\CreateCommand uses prefix 'scalpel'. | * For example, \App\Console\Commands\Scalpel\User\CreateCommand uses prefix 'scalpel'. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $commandPrefix = null; | protected $commandPrefix = ''; | ||||
/** | /** | ||||
* The object class that we are operating on, for example \App\User::class | * The object class that we are operating on, for example \App\User::class | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $objectClass; | protected $objectClass; | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |