Level 16
I think there is a base_path() that is also used in variois config files. you could use that.
Hello! I am developing a small package which will need to write a file to the base directory of the laravel installation, in the same spot as the composer.json file, phpunit.xml and so on lives.
How can I reference that path from within the package code? Is there a guaranteed way of referencing the same spot as the composer.json is in?
Please or to participate in this conversation.