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 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

  • 336
  • Created Feb 2020
  • Updated Sep 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 Nov 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.