MCQs > Website Designing & Development > Laravel Framework > Which is correct to define middleware for multiple views in controller file?

Laravel Framework MCQs

Which of the following is correct to define middleware for multiple views in controller file?

Answer

Correct Answer: public function __construct() { $this->middleware('admin', ['only' => ['create', 'edit', 'show']]); }

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