Laravel\Envoy\TaskContainer::resolveImportPath PHP Method

resolveImportPath() protected method

Resolve the import path for the given file.
protected resolveImportPath ( string $file ) : string | boolean
$file string
return string | boolean
    protected function resolveImportPath($file)
    {
        if (($path = realpath($file)) !== false) {
            return $path;
        } elseif (($path = realpath($file . '.blade.php')) !== false) {
            return $path;
        } elseif (($path = realpath(getcwd() . '/vendor/' . $file . '/Envoy.blade.php')) !== false) {
            return $path;
        } elseif (($path = realpath(__DIR__ . '/' . $file . '.blade.php')) !== false) {
            return $path;
        }
        return false;
    }