PHP code example of masoudi / nova-progress-field

1. Go to this page and download the library: Download masoudi/nova-progress-field 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/ */

    

masoudi / nova-progress-field example snippets


use Masoudi\Nova\Fields\Progress;

Progress::make('Progress')
    ->min(0) // default: 0
    ->max(100) // default: 100
    ->step(1) // default: 1
    ->default(25) // deafult number value
    ->displayUsing(fn ($progress) => "$progress%"), // change display text: 25%