PHP code example of defstudio / wired-tables

1. Go to this page and download the library: Download defstudio/wired-tables 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/ */

    

defstudio / wired-tables example snippets


return [
];

$wiredTables = new DefStudio\WiredTables();
echo $wiredTables->echoPhrase('Hello, DefStudio!');

MyTable extends WiredTable{
    public function mainView(): string
    {
        return 'custom-main-view';
    }
bash
php artisan vendor:publish --tag="wired-tables-config"
bash
php artisan vendor:publish --tag="wired-tables-views"
js
module.exports = {
    content: [
        //...
        './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
        './vendor/wire-elements/modal/resources/views/*.blade.php',
        //...
    ],
    theme: {
        extend: {},
    },
    plugins: [],
    prefix: 'tw-',
    corePlugins: {
        preflight: false,
    }
}
js
module.exports = {
    content: [
        //...
        './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
        './vendor/wire-elements/modal/resources/views/*.blade.php',
    ],
    
    //...
    
    prefix: 'tw-',
    corePlugins: {
        //...
        preflight: false,
    }
}
bash
php artisan vendor:publish --tag="wired-tables-views"