Skip to content

Conversation

azzarip
Copy link

@azzarip azzarip commented Jul 3, 2024

This PR adds the modules_path helper function to provide the fully qualified modules path, resolving the path using the config setting.

The function is autoloaded with composer, as any other standard helper function.

A small description has been added in the README and a test has been included.

It is useful to those who use this package across different projects where the modules' folder is named differently and you do not have to hard-code the path to the modules.

Example

It works exactly has many other laravel path helper functions:

$path = modules_path('module1/file.php');

azzarip and others added 2 commits July 3, 2024 17:27
Added helper function to retrieve modules path, the function is autoloaded with composer.
A small snippet has been added in the README and a test has been included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants