resource_path

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

$path = resource_path('sass/app.scss');
<?php     |




    'view_path' => resource_path('views/livewire'),




    |---------------------------------------------------------------------------
<?php     {

        $app['config']->set('view.paths', [

            __DIR__.'/views',

            resource_path('views'),

        ]);



        $app['config']->set('app.key', 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8=');
<?php     protected function livewireViewsPath($path = '')

    {

        return resource_path('views').'/livewire'.($path ? '/'.$path : '');

    }



    protected function driver(): RemoteWebDriver
<?php     {

        $app['config']->set('view.paths', [

            __DIR__.'/views',

            resource_path('views'),

        ]);



        $app['config']->set('app.key', 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8=');
<?php     protected function livewireViewsPath($path = '')

    {

        return resource_path('views').'/livewire'.($path ? '/'.$path : '');

    }



    protected function livewireTestsPath($path = '')
<?php     public function viewName()

    {

        return collect()

            ->when(config('livewire.view_path') !== resource_path(), function ($collection) {

                return $collection->concat(explode('/',str($this->baseViewPath)->after(resource_path('views'))));

            })

            ->filter()
<?php     {

        return collect()

            ->when(config('livewire.view_path') !== resource_path(), function ($collection) {

                return $collection->concat(explode('/',str($this->baseViewPath)->after(resource_path('views'))));

            })

            ->filter()

            ->concat($this->directories)
<?php     public function handle()

    {

        $baseViewPath = resource_path('views');



        $layout = str(config('livewire.layout'));
<?php     {

        $parser = new ComponentParser(

            'App\Livewire',

            resource_path('views/livewire'),

            $input

        );
<?php         $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()));

    }



    public static function classPathProvider()
<?php     protected function livewireLayoutsPath($path = '')

    {

        return resource_path('views').'/components/layouts'.($path ? '/'.$path : '');

    }

}
<?php     public function new_component_class_view_name_reference_matches_configured_view_path()

    {


        $this->app['config']->set('livewire.view_path', resource_path('views/not-livewire'));

        $this->app[Kernel::class]->call('make:livewire', ['name' => 'foo']);



        $this->assertStringContainsString(
<?php             "view('not-livewire.foo')",

            File::get($this->livewireClassesPath('Foo.php'))

        );

        $this->assertTrue(File::exists(resource_path('views/not-livewire/foo.blade.php')));

    }
<?php         app('livewire')->provide(function () {

            $this->loadViewsFrom(__DIR__.'/views', 'livewire');



            $paths = [__DIR__.'/views' => resource_path('views/vendor/livewire')];



            $this->publishes($paths, 'livewire');

            $this->publishes($paths, 'livewire:pagination');
<?php     protected function getView($component)

    {

        $viewPath = config('livewire.view_path', resource_path('views/livewire'));



        $dotName = $component->getName();