protected function getModuleByModel(Model $model)
    {
        /** @var ModuleManagerInterface $modules */
        $modules = app(ModuleManagerInterface::class);

        return $modules->getByAssociatedClass(get_class($model));
    }
protected function getModuleByModel(Model $model)
    {
        /** @var ModuleManagerInterface $modules */
        $modules = app(ModuleManagerInterface::class);

        return $modules->getByAssociatedClass(get_class($model));
    }
protected function getModuleByModel ( Model $ model ) { /** @var ModuleManagerInterface $modules */ $ modules = app ( ModuleManagerInterface :: class ) ; return $ modules -> getByAssociatedClass ( get_class ( $ model ) ) ; }
Returns the module for a given model.

@param Model $model
@return ModuleInterface|false
Returns the module for a given model .