Skip to main content

Code Examples of interfaces

Discover how to use Laravel's interfaces method in real-world applications. Browse 6 examples from popular open-source projects.

6 examples

monicahq/monica

  • 24763
  • Created Jul 2017
  • Updated Apr 2026

Files in this example

  • app/Interfaces/Hashing.php
    • app/Models/ModelBindingHasher.php
      • app/Traits/Hasher.php
View full example

pterodactyl/panel

  • 8951
  • Created Dec 2016
  • Updated Jun 2026

Files in this example

  • app/Contracts/Repository/TaskRepositoryInterface.php
    • app/Repositories/Eloquent/TaskRepository.php
      • app/Contracts/Repository/RepositoryInterface.php
View full example

HDInnovations/UNIT3D-Community-Edition

  • 2391
  • Created Dec 2017
  • Updated Jun 2026

Files in this example

  • app/Interfaces/ByteUnitsInterface.php
    • app/Helpers/ByteUnits.php
View full example

iluminar/goodwork

  • 2229
  • Created Nov 2017
  • Updated Nov 2025

Files in this example

  • app/Base/Contracts/HasMembers.php
    • app/Office/Models/Office.php
      • app/Project/Models/Project.php
        • app/Team/Models/Team.php
View full example

stefanzweifel/screeenly

  • 529
  • Created Jul 2014
  • Updated May 2026

Files in this example

  • modules/Screeenly/Contracts/CanCaptureScreenshot.php
    • modules/Screeenly/Services/InMemoryBrowser.php
      • modules/Screeenly/Services/ChromeBrowser.php
        • modules/Screeenly/Providers/ScreeenlyServiceProvider.php
          • modules/Screeenly/Services/CaptureService.php
            • tests/modules/Screeenly/integration/api/v2/ApiV2ScreenshotTest.php
View full example

academico-sis/academico

  • 371
  • Created Dec 2018
  • Updated Jun 2026

Files in this example

  • app/Interfaces/InvoicingInterface.php
    • app/Services/Ecuasolutions.php
View full example