PHP code example of devecommercepl / filament-translate-resource-labels

1. Go to this page and download the library: Download devecommercepl/filament-translate-resource-labels 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/ */

    

devecommercepl / filament-translate-resource-labels example snippets


public function form(Form $form): Form {
    return $form
        ->schema([
            TextInput::make('name'),
        ]);
}



return [
    'name' => 'Customer name',
];

    use DevEcommercePL\FilamentTranslateResourceLabels\TranslateResourceLabelsPlugin;
   
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                TranslateResourceLabelsPlugin::make()
            ])
    }