Merge pull request #717 from openclassify/vedatak

added activation email for trail form
This commit is contained in:
Muammer Top 2020-10-14 17:17:51 +03:00 committed by GitHub
commit 20f10a0eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 1 deletions

View File

@ -4,7 +4,10 @@
"autoload": {
"psr-4": {
"Visiosoft\\ProfileModule\\": "src/"
}
},
"files": [
"src/Support/_helpers.php"
]
},
"require": {
"maatwebsite/excel": "*"

View File

@ -14,4 +14,9 @@ class UserActivatedByMail
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
}
}

View File

@ -0,0 +1,12 @@
<?php namespace Visiosoft\ProfileModule\Support\Command;
use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface;
class getAdmins
{
public function handle()
{
$adminRole = app(RoleRepositoryInterface::class)->findBySlug('admin');
return $adminRole->getUsers();
}
}

View File

@ -0,0 +1,10 @@
<?php
use Visiosoft\ProfileModule\Support\Command\getAdmins;
if (!function_exists('get_admins'))
{
function getAdmins() {
return dispatch_now(new getAdmins());
}
}