Skip to content

berthott/laravel-internal-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Laravel Helper for running internal requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages