PHP code example of sumflyhighlab / text-combine-number

1. Go to this page and download the library: Download sumflyhighlab/text-combine-number 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/ */

    

sumflyhighlab / text-combine-number example snippets


namespace App\Nova;

use Sumflyhighlab\TextCombineNumber\TextCombineNumber;


class User extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            TextCombineNumber::make('Price')
                ->prefix('$')
                ->thousandsSeparator(','),

            TextCombineNumber::make('Markup')
                ->decimals(0)
                ->suffix('%')
                ->min(0)->max(100),

            // ...
        ];
    }
}