The app_path function returns the fully qualified path to your application's app directory. You may also use the app_path function to generate a fully qualified path to a file relative to the application directory:
<?php $path = app_path();

$path = app_path('Http/Controllers/Controller.php');
<?php     protected function livewireClassesPath($path = '')

    {

        return app_path('Livewire'.($path ? '/'.$path : ''));

    }



    protected function livewireViewsPath($path = '')
<?php     protected function livewireClassesPath($path = '')

    {

        return app_path('Livewire'.($path ? '/'.$path : ''));

    }



    protected function livewireViewsPath($path = '')
<?php     {

        $namespace = str(config('livewire.class_namespace'))->replaceFirst(app()->getNamespace(), '');



        $livewireFolder = app_path($namespace->explode('\\')->implode(DIRECTORY_SEPARATOR));



        return ! File::isDirectory($livewireFolder);

    }
<?php         $this->assertEquals($component, $parser->component());

        $this->assertEquals($namespace, $parser->classNamespace());

        $this->assertEquals($this->normalizeDirectories(app_path($classPath)), $this->normalizeDirectories($parser->classPath()));

        $this->assertEquals($viewName, $parser->viewName());

        $this->assertEquals($this->normalizeDirectories(resource_path('views/'.$viewPath)), $this->normalizeDirectories($parser->viewPath()));

    }
<?php     protected function livewireClassesPath($path = '')

    {

        return app_path('Livewire'.($path ? '/'.$path : ''));

    }



    protected function livewireViewsPath($path = '')