Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/PlanPackages.php
<?php | <?php | ||||
namespace App\Console\Commands; | namespace App\Console\Commands; | ||||
use App\Console\Command; | |||||
use App\Plan; | use App\Plan; | ||||
use Illuminate\Console\Command; | |||||
class PlanPackages extends Command | class PlanPackages extends Command | ||||
{ | { | ||||
/** | /** | ||||
* The name and signature of the console command. | * The name and signature of the console command. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $signature = 'plan:packages'; | protected $signature = 'plan:packages'; | ||||
/** | /** | ||||
* The console command description. | * The console command description. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $description = "List packages for plans."; | protected $description = "List packages for plans."; | ||||
/** | /** | ||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$plans = Plan::all(); | $plans = Plan::all(); | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |