anonaddy/app/Http/Controllers/ShowAliasController.php
2019-11-05 14:50:31 +00:00

20 lines
715 B
PHP

<?php
namespace App\Http\Controllers;
class ShowAliasController extends Controller
{
public function index()
{
return view('aliases.index', [
'defaultRecipient' => user()->defaultRecipient,
'aliases' => user()->aliases()->with(['recipients', 'aliasable.defaultRecipient'])->latest()->get(),
'recipients' => user()->verifiedRecipients,
'totalForwarded' => user()->totalEmailsForwarded(),
'totalBlocked' => user()->totalEmailsBlocked(),
'totalReplies' => user()->totalEmailsReplied(),
'domain' => user()->username.'.'.config('anonaddy.domain'),
'bandwidthMb' => user()->bandwidth_mb
]);
}
}