for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (! function_exists('module_path')) {
function module_path($name)
{
$module = app('modules')->find($name);
return $module->getPath();
}
if (! function_exists('public_path')) {
/**
* Get the path to the public folder.
*
* @param string $path
* @return string
*/
function public_path($path = '')
return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);