Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Latest commit

 

History

History
22 lines (16 loc) · 479 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 479 Bytes

Wewillapp Format Response For Laravel 5+

Instruction

  1. Copy this code and paste in app\Exceptions\Handler.php
if ($request->wantsJson()) {
    return \Wewillapp\FormatResponse::render($exception);
}
  1. Add Alias in config/app.php
    "aliases" => [
        //aliases
        'FormatResponse' => \Wewillapp\FormatResponse::class
    ]

Copy © 2019 Wewillapp All right Reserved. Created by Natakorn Chanasumon