for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule;
use Anomaly\Streams\Platform\Addon\Module\Module;
use Anomaly\UsersModule\Role\Command\SetGuestRole;
/**
* Class UsersModule
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class UsersModule extends Module
{
* The module icon.
* @var string
protected $icon = 'users';
* The module sections.
* @var array
protected $sections = [
'users' => [
'buttons' => [
'new_user',
],
'roles' => [
'new_role',
'fields' => [
'add_field' => [
'data-toggle' => 'modal',
'data-target' => '#modal',
'href' => 'admin/users/fields/choose',
];
* Fire after the addon registers.
public function onRegistered()
if ($this->isInstalled()) {
$this->dispatch(new SetGuestRole());
}