mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Merge pull request #717 from openclassify/vedatak
added activation email for trail form
This commit is contained in:
commit
20f10a0eeb
@ -4,7 +4,10 @@
|
|||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Visiosoft\\ProfileModule\\": "src/"
|
"Visiosoft\\ProfileModule\\": "src/"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"src/Support/_helpers.php"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"maatwebsite/excel": "*"
|
"maatwebsite/excel": "*"
|
||||||
|
|||||||
@ -14,4 +14,9 @@ class UserActivatedByMail
|
|||||||
{
|
{
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
return $this->user;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Visiosoft\ProfileModule\Support\Command\getAdmins;
|
||||||
|
|
||||||
|
if (!function_exists('get_admins'))
|
||||||
|
{
|
||||||
|
function getAdmins() {
|
||||||
|
return dispatch_now(new getAdmins());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user