caffeinated / themes

:art: Laravel Themes package with support for the Caffeinated Modules package.

Home Page:https://caffeinatedpackages.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make redirect view for 4.0 version?

racibaz opened this issue · comments

commented

I used version 3. It makes redirect to view in the controller.

return Theme::view('frontend.index', compact( 'var1', 'var2', ))->render();

But how to make redirect to view with version v4.0.2?

Thanks @kaidesu

commented

With v4 you may simply use the native view method - the package automatically hooks into this process to resolve the correct view to load (whether its from your theme or your root app)