PHP code example of power-components / livewire-powergrid
1. Go to this page and download the library: Download power-components/livewire-powergrid 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/ */
power-components / livewire-powergrid example snippets
use PowerComponents\LivewirePowerGrid\TurbineTable;
use PowerComponents\Turbine\Contracts\GridSchema;
class UserTable extends TurbineTable
{
public string $tableName = 'users';
protected function definition(): GridSchema
{
return new UsersGrid(); // the same class an Inertia controller uses
}
}
bash
php artisan boost:update --discover