2021-08-29 13:58:12 +00:00
|
|
|
<?php
|
|
|
|
|
2024-05-27 05:08:39 +00:00
|
|
|
namespace App\Console\Commands\Debug;
|
2021-08-29 13:58:12 +00:00
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
use App\Models\Echomail;
|
|
|
|
|
|
|
|
class EchomailDump extends Command
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name and signature of the console command.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2024-05-27 05:08:39 +00:00
|
|
|
protected $signature = 'debug:echomail:dump {id}';
|
2021-08-29 13:58:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = 'Echomail Dump';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
2024-05-27 05:08:39 +00:00
|
|
|
* @return int
|
2021-08-29 13:58:12 +00:00
|
|
|
*/
|
2024-05-27 05:08:39 +00:00
|
|
|
public function handle(): int
|
2021-08-29 13:58:12 +00:00
|
|
|
{
|
|
|
|
dump(Echomail::findOrFail($this->argument('id')));
|
2024-05-27 05:08:39 +00:00
|
|
|
|
|
|
|
return self::SUCCESS;
|
2021-08-29 13:58:12 +00:00
|
|
|
}
|
|
|
|
}
|