berthott / laravel-internal-request
Laravel Helper for running internal requests
3.0.0
2023-02-16 07:55 UTC
Requires (Dev)
- doctrine/dbal: ^3.3
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-03-11 15:07:30 UTC
README
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.