PHP code example of gsferro / livewire-import-easy

1. Go to this page and download the library: Download gsferro/livewire-import-easy 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/ */

    

gsferro / livewire-import-easy example snippets

 
    <x-livewire-import-easy
        :accept="$accept"
        :icon="$icon"
        :label="$label"
        :importFinishedMessageShow="$importFinishedMessageShow"
        :importFinishedMessage="$importFinishedMessage"
        :importingMessageShow="$importingMessageShow"
        :importingMessage="$importingMessage"
        :importFinished="$importFinished"
        :importing="$importing"
    />
    
 
  public bool   $importingMessageShow = true;
  public string $importingMessage = 'Importando... por favor aguarde.';
  public bool   $importFinishedMessageShow = true;
  public string $importFinishedMessage = 'Importação realizada com sucesso!';
  public string $label = 'Importar';
  public string $icon = 'fa-solid fa-upload';
  
shell
php artisan vendor:publish --provider="Gsferro\LivewireImportEasy\Providers\LivewireImportEasyServiceProvider" --force