Suppose we have a collection which contains the website news. What is the best way to share that collection in all views?
Correct Answer: view()->share('news', NewsStory::orderBy('created_at', 'desc')->paginate(5));
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Laravel Framework MCQ Questions