Page MenuHomePhorge

ListCommand.php
No OneTemporary

Authored By
Unknown
Size
686 B
Referenced Files
None
Subscribers
None

ListCommand.php

<?php
namespace App\Console\Commands\Imap;
use App\Console\Command;
use App\Support\Facades\IMAP;
class ListCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'imap:list {user}';
/**
* The console command description.
*
* @var string
*/
protected $description = "List IMAP Folders";
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$user = $this->argument('user');
foreach (IMAP::listMailboxes($user) as $mailbox) {
$this->info("{$mailbox}");
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:36 PM (4 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18841909
Default Alt Text
ListCommand.php (686 B)

Event Timeline