1. Go to this page and download the library: Download laragear/poke 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/ */
laragear / poke example snippets
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\RegisterController;
Route::get('register', RegisterController::class)->middleware('poke');
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\StatusController;
Route::get('status', StatusController::class)->middleware('poke:force');
use Laragear\Poke\Livewire\InteractsWithPoke;
use Livewire\Component as LivewireComponent;
class MyCustomForm extends LivewireComponent
{
use InteractsWithPoke;
// ...
}
use Filament\Pages\Page;
use Laragear\Poke\Livewire\InteractsWithPoke;
class Onboarding extends Page
{
use InteractsWithPoke;
// ...
}