Replies: 2 comments
-
?! |
Beta Was this translation helpful? Give feedback.
0 replies
-
why?! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to show specific data for premium accounts only
With the use of responsecache
if (Auth::guard('users')->check()) { $data = Post::select('post.title', 'post.id', 'post.poster_path', 'post.vote_average')->where('active', '=', 1)->where('premium', '=', Auth::guard('users')->user()->premium)->orderByDesc('views')->limit(10)->get(); } else { $data = Post::select('post.title', 'post.id', 'post.poster_path', 'post.vote_average')->where('active', '=', 1)->where('premium', '=', 0)->orderByDesc('views')->limit(10)->get(); }
How do I do this with responsecache
Beta Was this translation helpful? Give feedback.
All reactions