1. Go to this page and download the library: Download bbs-lab/nova-translation 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/ */
// app/Providers/NovaServiceProvider.php
public function tools()
{
return [
new \BBSLab\NovaTranslation\Tools\TranslationMatrix,
];
}
// app/Nova/Locale.php
namespace App\Nova;
use App\Helpers\StaticLabel;
use BBSLab\NovaTranslation\Resources\Locale as BaseResource;
class Locale extends BaseResource
{
/**
* {@inheritdoc}
*/
public static $group = StaticLabel::GROUP_ADMINISTRATION;
}