Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return with problem #37

Open
KatiaSishost opened this issue Sep 21, 2021 · 1 comment
Open

return with problem #37

KatiaSishost opened this issue Sep 21, 2021 · 1 comment

Comments

@KatiaSishost
Copy link

KatiaSishost commented Sep 21, 2021

hello any can help me?

this work correctly (direct in blade)
return view('index')->with('posts',$post)->with('recent_posts',$rcnt_post);

but with themes no work (with laravel-theme)
return Theme::view('index')->with('posts',$post)->with('recent_posts',$rcnt_post);

@usmaneshop
Copy link

i know this is old question but if anyone face same issue thrn you should use this way.
return Theme::view('index',['posts' => $posts, 'recent_posts' => $rcnt_post]);
@KatiaSishost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants