bfg/embedded-call

API with closing functions

Installs: 29 663

Dependents: 5

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:bfg-app

1.0.0 2022-02-09 17:53 UTC

This package is auto-updated.

Last update: 2024-11-09 23:38:29 UTC


README

This package provides the ability to call a feature with adjusted data. It is convenient to let out the API with closing functions.

Usage

embedded_call(function (\Illuminate\Http\Request $request) {
    dd($request); // This is a request app instance
});
// Or
embedded_call(function (\Illuminate\Http\Request $request) {
    dd($request); // This is my request instance
}, ['request' => $my_request_instance]);