Kuis Service Container — Laravel

Kuis materi Service Container di Laravel — uji pemahamanmu dengan pertanyaan pilihan ganda, penjelasan jawaban, dan skor langsung. Main gratis di Hyper Sheets.

Pertanyaan di kuis ini

  1. Bind interface ke implementasi:
    $this->app->___(UserRepositoryInterface::class, EloquentUserRepository::class);
  2. Mekanisme Laravel yang otomatis menyelesaikan dependency class disebut apa?
  3. File tempat mendaftarkan binding service container?
  4. Daftarkan implementasi mana yang dipakai ketika interface ini diminta:
    $this->app->___(UserRepositoryInterface::class, EloquentUserRepository::class);