PHP code example of huo-zi / laravel-admin-ext-displayer

1. Go to this page and download the library: Download huo-zi/laravel-admin-ext-displayer 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/ */

    

huo-zi / laravel-admin-ext-displayer example snippets


$grid->column('field_name', 'field_label')->ellipsis('100px');

$grid->column('field_name', 'field_label')->increase('field_name2');

$grid->column('field_name', 'field_label')->increase(function($row){
    return $this->field_name - $this->field_name2;
});

$filter->column('field_label')->multiline('field_name1','field_name2','relation.field_name3');

$grid->column('field_name', 'field_label')->progressBar()->progressRefresh(ProgressRefresh::class, 3);

$filter->column('field_name', 'field_label')->unit('¥');

$filter->column('field_name', 'field_label')->unit('%', false);