Quizzes: Laravel • Architecture Concepts • Service Container

Given the following code, what will be the expected behavior?

11 Remaining
1$this->app->when(PhotoController::class)
2 ->needs(Filesystem::class)
3 ->give(function () {
4 return Storage::disk('local');
5 });
Given the following code, what will be the expected behavior?
Tip: Documentation links and some explanations will appear when you complete the quiz.

Permalink: https://rappasoft.com/quizzes/laravel/service-container/abd16f26-3cd5-46a7-9562-5a2ed2781d35

You can also get here with laravel-quizzes.com