view

The view function retrieves a view instance:
<?php return view('auth.login');
<?php     public function render()

    {

        return view('layouts.app-from-class-component');

    }

}
<?php     public function render()

    {

        return view('layouts.app-from-class-component');

    }

}
<?php     public function render()

    {

        return view()->file(__DIR__ . '/view-toggle-entangled-turbo.blade.php')

            ->layout('components.layouts.app-for-turbo-views');

    }

}
<?php             Route::get('/livewire-dusk/{component}', ShowDuskComponent::class)->middleware('web');



            Route::middleware('web')->get('/entangle-turbo', function () {

                return view('turbo', [

                    'link' => '/livewire-dusk/' . urlencode(\LegacyTests\Browser\Alpine\Entangle\ToggleEntangledTurbo::class),

                ]);

            })->name('entangle-turbo');
<?php     public function render()

    {

        return view('null-view');

    }

}
<?php     public function render()

    {

        return view('null-view');

    }

}
<?php             }

        });



        $view = view('uses-component')->with('variable', 'cheese');



        Route::get('/with-livewire', fn() => $view);
<?php                 sleep(1);

            }

            public function placeholder(array $params = []) {

                return view('placeholder', $params);

            }

            public function render() {

                return <<<HTML
<?php         $globalPlaceholder = config('livewire.lazy_placeholder');



        $placeholderHtml = $globalPlaceholder

            ? view($globalPlaceholder)->render()

            : '<div></div>';



        $viewOrString = wrap($component)->withFallback($placeholderHtml)->placeholder($params);
<?php #[Lazy]

class PageWithCustomLayoutOnView extends Component {

    public function placeholder() {

        return view('show-name', ['name' => 'foo'])->layout('components.layouts.custom');

    }

}
<?php     public function render()

    {

        return \view('dump-errors');

    }

}
<?php     public function render()

    {

        return \view('dump-errors');

    }

}
<?php     public function render()

    {

        return \view('dump-errors');

    }

}
<?php     public function render()

    {

        return \view('dump-errors');

    }

}