src/FileRepository.php
public function findByAlias($alias)
    {
        foreach ($this->all() as $module) {
            if ($module->getAlias() === $alias) {
                return $module;
            }
        }

        return;
    }
public function findByAlias($alias)
    {
        foreach ($this->all() as $module) {
            if ($module->getAlias() === $alias) {
                return $module;
            }
        }

        return;
    }
public function findByAlias ( $ alias ) { foreach ( $ this -> all ( ) as $ module ) { if ( $ module -> getAlias ( ) === $ alias ) { return $ module ; } } return ; }
Find a specific module by its alias.
@param $alias
@return mixed|void
Find a specific module by its alias .