Skip to main content
Back to packages
1,599 GitHub stars

tailflow/laravel-orion

View on GitHub

Description

Laravel Orion allows you to build a fully featured REST API based on your Eloquent models and relationships with simplicity of Laravel as you love it.

Orion uses the most powerful features of Laravel: Eloquent models and relationships, policies, request classes, and API resources, which makes it incredibly powerful and extensible, yet simple to get started with.

You create a controller, associate it with Eloquent model you would like to manage via API and let Orion do the REST (see what I've done here :smile: ) for you! All endpoints for index, search, show, store, update, destroy, restore and batchStore, batchUpdate, batchDestroy, batchRestore operations will already be there with proper authorization, validation and error handling (you need to define policies and request classes yourself, of course).

But it does not end here. Define relationship controllers, and it will allow your API consumers to manage all types of relations. Yes, all, which means associate/dissociate, attach/detach, sync, toggle, updatePivot as well as CRUD operations are available via a standardized REST API.

And, as a bonus, search endpoint on both model and relationship controllers allows applying all sorts of query constraints to retrieve filtered results.

Features

  • REST API for models and relationships with batch operations support
  • Advanced searching capabilities with sorting, filtering, and keyword search
  • Automatic OpenAPI specifications generation
  • Comprehensive set of endpoint hooks
  • Relations inclusion and soft deletes via query parameters
  • Straightforward authorization and validation
  • Responses transformation via API resources

Related Content on Laravel Daily

Video

Recent Courses on Laravel Daily

[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks

7 lessons
43 min read

Testing in Laravel 13 For Beginners

26 lessons
1 h 41 min read

Queues in Laravel 13

18 lessons
1 h 12 min read

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.