21 lines
410 B
PHP
Executable File
21 lines
410 B
PHP
Executable File
<?php
|
|
|
|
namespace Common\Csv;
|
|
|
|
use Auth;
|
|
use Common\Auth\Jobs\ExportRolesCsv;
|
|
use Common\Auth\Jobs\ExportUsersCsv;
|
|
|
|
class CommonCsvExportController extends BaseCsvExportController
|
|
{
|
|
public function exportUsers()
|
|
{
|
|
return $this->exportUsing(new ExportUsersCsv(Auth::id()));
|
|
}
|
|
|
|
public function exportRoles()
|
|
{
|
|
return $this->exportUsing(new ExportRolesCsv(Auth::id()));
|
|
}
|
|
}
|