PHP code example of visual-ideas / moonshine-laravel-translations
1. Go to this page and download the library: Download visual-ideas/moonshine-laravel-translations 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/ */
visual-ideas / moonshine-laravel-translations example snippets
TODO Config info
MenuItem::make('Переводы', new \VI\MoonShineLaravelTranslations\Resources\MoonShineLaravelTranslationResource())
->translatable()
->badge(fn()=>cache()->remember('moonshine_laravel_translations_changed_count',
now()->addMinute(),
fn()=>\VI\MoonShineLaravelTranslations\Models\MoonshineLaravelTranslation::getCountChanged()))
->icon('heroicons.outline.language'),
bash
php artisan migrate
bash
php artisan vendor:publish --provider="VI\MoonShineLaravelTranslations\Providers\MoonShineLaravelTranslationsServiceProvider" --tag="config"