src/LaravelJsendServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        ResponseFactory::macro('jsend', function ($data = [], $statusCode = 200, $headers = []) {
            return response()->json(
                JSend::build($data, $statusCode),
                $statusCode,
                $headers
            );
        });
    }
public function boot ( ) { ResponseFactory :: macro ( 'jsend' , function ( $ data = [ ] , $ statusCode = 200 , $ headers = [ ] ) { return response ( ) -> json ( JSend :: build ( $ data , $ statusCode ) , $ statusCode , $ headers ) ; } ) ; }
Bootstrap the application services.
Bootstrap the application services .