Skip to main content

Code Examples of public API

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

3 examples

tighten/novapackages

  • 337
  • Created Feb 2020
  • Updated Nov 2025

Files in this example

  • routes/api.php
    • app/Http/Controllers/Api/RecentController.php
      • app/Http/Resources/PackageResource.php
View full example

tighten/laravelversions

  • 98
  • Created Jan 2021
  • Updated Dec 2025

Files in this example

  • routes/api.php
    • app/Http/Controllers/Api/LaravelVersionsController.php
      • app/Http/Resources/LaravelVersionResource.php
View full example

prettifystudio/avatary

  • 39
  • Created Sep 2021
  • Updated Feb 2022

Files in this example

  • routes/api.php
    • app/Http/Controllers/Api/AvatarController.php
View full example

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.