LaravelPackages.net
Acme Inc.
Toggle sidebar
purwandi/responder

Transform your laravel eloquent model using fluent fractal API

85
0
About purwandi/responder

purwandi/responder is a Laravel package for transform your laravel eloquent model using fluent fractal api. It currently has 0 GitHub stars and 85 downloads on Packagist. Install it with composer require purwandi/responder. Discover more Laravel packages by purwandi or browse all Laravel packages to compare alternatives.

Last updated

Laravel Responder

TLDR ;)

Installation

Install the package through Composer:

composer require purwandi/responder

Laravel

Registering the Service Provider

After updating Composer, append the following service provider to the providers key in config/app.php

Purwandi\Responder\ResponderServiceProvider::class

Registering the Facade

If you like facades you may also append the Responder facade to the aliases key:

Usage

Using Facade

Optionally, you may use the Responder facade to create responses:

return Responder::success($users);

Including Data

return Responder::with('blog')->success($users);
return Responder::with('blog', 'blog.comment')->success($users);

Credit

  1. Fractal
  2. Laravel Responder

Star History Chart