Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function comments()
- {
- $comments = \App\Comment::orderBy('created_at', 'desc')->get();
- $view = ['url' => route('posts.store'),
- 'comments' => $comments,
- 'subview' => 'dashboard.comments'
- ];
- return view('dashboard.main', compact('comments'))->with('view', $view);;
- }
- @includeWhen(in_array('subview', $view), $view->subview)
Add Comment
Please, Sign In to add comment