1. Go to this page and download the library: Download darkghosthunter/larapoke 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/ */
darkghosthunter / larapoke example snippets
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\RegisterController;
Route::get('register', [RegisterController::class, 'showForm'])
->middleware('larapoke');
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\RegisterController;
Route::prefix('informationForms')
->middleware('larapoke:detect')
->group(function () {
// Here it will be injected
Route::get('register', [RegisterController::class, 'showForm']);
// But not here since there is no form
Route::get('status', [RegisterController::class, 'status']);
});