Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modules_path helper function #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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');

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.

1 participant