PHP code example of darvis / livewire-injection-stopper
1. Go to this page and download the library: Download darvis/livewire-injection-stopper 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/ */
darvis / livewire-injection-stopper example snippets
// app/Livewire/Checkout.php
namespace App\Livewire;
use Livewire\Attributes\Locked;
use Livewire\Component;
class Checkout extends Component
{
#[Locked]
public bool $isAdmin = false;
}
bash
php artisan vendor:publish --tag=livewire-injection-stopper-config
bash
php artisan livewire-injection-stopper:audit