Which of the following is correct to pass $name variable to views?
Correct Answer: public function index() { $name = 'Foo'; return view('welcome', compact('name')); }
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
More Laravel Framework MCQ Questions