PHP code example of krzysztofrewak / larahat
1. Go to this page and download the library: Download krzysztofrewak/larahat 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/ */
krzysztofrewak / larahat example snippets
/**
* @When :method request is sent to :endpoint endpoint
* @param string $method
* @param string $endpoint
*/
public function requestIsSentToEndpoint(string $method, string $endpoint): void
{
$request = Request::create($endpoint, $method);
app()->handle($request);
}