Looking to hire Laravel developers? Try LaraJobs

laravel-internal-request maintained by berthott

Description
Laravel Helper for running internal requests
Author
Last update
2024/12/11 15:26 (dev-master)
License
Links
Downloads
643

Comments
comments powered by Disqus

test workflow

Laravel-Internal-Request

Laravel Helper for running internal requests.

Installation

$ composer require berthott/laravel-internal-request

Usage

  • Import the facade berthott\InternalRequest\Facades\InternalRequest
  • For the API see berthott\InternalRequest\Services\InternalRequestService
use berthott\InternalRequest\Facades\InternalRequest;

/**
 * Use any http method using the request() method.
 */
InternalRequest::request('GET', $route, $data, $user);

/**
 * Use one of the convenience methods get(), post(), put(), delete().
 */
InternalRequest::get($route, $data, $user);

/**
 * Disable all middleware for a single request.
 */
InternalRequest::disableMiddleware()->get($route, $data, $user);

Compatibility

Tested with Laravel 10.x.

License

See License File. Copyright © 2023 Jan Bladt.