Quizzes: Laravel • Architecture Concepts • Service Container

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

11 Remaining
$this->app->when(PhotoController::class)
    ->needs(Filesystem::class)
    ->give(function () {
      return Storage::disk('local');
    });
Given the following code, what will be the expected behavior?
Tip: 2,344 quizzes have already been completed with an average score of 61!

Permalink: https://rappasoft.com/quizzes/laravel/service-container/92cc7d15-59aa-40fc-b685-54a7f1928c2c

Find this useful? Consider sponsoring me on GitHub
You can also get here with laravel-quizzes.com