anonaddy/app/Http/Controllers/ShowAliasController.php
2019-10-18 14:19:46 +01:00

20 lines
718 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', 'customDomain.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
]);
}
}