Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Code Examples of koel/koel

Discover how to use Laravel's koel/koel examples.

15 examples

Auth sanctum

Files in this example

  • composer.json
    • app/Models/User.php
      • app/Services/TokenManager.php
        • app/Http/Controllers/API/AuthController.php
          • config/auth.php
View all examples

Traits

Files in this example

  • app/Traits/CanFilterByUser.php
    • app/Repositories/PlaylistRepository.php
View all examples

Repositories

Files in this example

  • app/Repositories/ArtistRepository.php
    • app/Http/Controllers/API/SongController.php
View all examples

Service providers

Files in this example

  • app/Providers/YouTubeServiceProvider.php
View all examples

Policies

Files in this example

  • app/Policies/PlaylistPolicy.php
    • app/Providers/AuthServiceProvider.php
      • app/Http/Controllers/API/PlaylistController.php
View all examples

Observers

Files in this example

  • app/Observers/SongObserver.php
    • app/Providers/EventServiceProvider.php
View all examples

Collection Methods: Each

Files in this example

  • app/Services/SmartPlaylistService.php
View all examples

Events & listeners

Files in this example

  • app/Listeners/DownloadArtistImage.php
    • app/Providers/EventServiceProvider.php
View all examples

Youtube

Files in this example

  • app/Services/YouTubeService.php
    • app/Http/Controllers/API/YouTubeController.php
View all examples

Collection Methods: Tap

Files in this example

  • app/Services/InteractionService.php
View all examples

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.