PHP code example of michaeld555 / filament-audio-generator-field

1. Go to this page and download the library: Download michaeld555/filament-audio-generator-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/ */

    

michaeld555 / filament-audio-generator-field example snippets


use \Michaeld555\AudioGeneratorField\Forms\Components\AudioGenerator;

[...]
public static function form(Form $form): Form
{
    return $form
        ->schema([
            AudioGenerator::make('audio'),
        ]);
}

use \Michaeld555\AudioGeneratorField\Forms\Components\AudioGenerator;

AudioGenerator::make('audio')
    ->disk('private')
    ->audioGenerator(false) // hide the 'Generate with AI' button,
bash
php artisan vendor:publish --tag="filament-audio-generator-field-config"
bash
php artisan vendor:publish --tag="filament-audio-generator-field-translations"