eloquent/liberator
Auto-generate RESTful CRUD controllers, routes, and API resources for Laravel apps from Eloquent models. Liberator helps you scaffold consistent endpoints quickly, reducing boilerplate while keeping generated code editable and aligned with your existing models and conventions.
delete() for non-admin services).spatie/laravel-permission).For Executives:
"Liberator lets us ship API features 30% faster by automating access control for Eloquent models—no more writing repetitive middleware or policies. For example, we can hide sensitive fields (like password) or methods (like delete) from non-admin users with a single decorator. This reduces technical debt and aligns with our security roadmap without hiring additional backend engineers. The trade-off? A minor abstraction layer (archived but stable), which we’d mitigate by forking if needed."
For Engineering: *"This is a surgical tool for Eloquent APIs. Instead of:
// Before: Manual middleware for every route
Route::get('/users', function () {
return User::where('active', true)->get()->filter(fn ($u) => auth()->user()->can('view', $u));
});
// After: One-line proxy
return Liberator::new(User::query())->only(['id', 'name'])->get();
Pros:
Cons:
Recommendation: Pilot on 2–3 high-traffic endpoints to validate velocity gains."*
How can I help you explore Laravel packages today?