PHP code example of katsana / minions-polyfill
1. Go to this page and download the library: Download katsana/minions-polyfill 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/ */
katsana / minions-polyfill example snippets
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
// ...
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
Route::minion('rpc');
parent::boot();
}
// ...
}
Route::minion('/', 'rpc.your-domain');