MCQs > Website Designing & Development > Laravel Framework > Which can be used in views to print a message if array is empty?

Laravel Framework MCQs

Which of the following can be used in views to print a message if array is empty?

Answer

Correct Answer: ul> @forelse ($names as $name) <li>{{ $name }}</li> @empty <li>Don't have names to list.</li> @endforelse </ul>

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it