PHP code example of berthott / laravel-internal-request
1. Go to this page and download the library: Download berthott/laravel-internal-request library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
berthott / laravel-internal-request example snippets
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);