PHP code example of soluzione-software / nova-translatable-field
1. Go to this page and download the library: Download soluzione-software/nova-translatable-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/ */
soluzione-software / nova-translatable-field example snippets
namespace App\Nova;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\Text;
use SoluzioneSoftware\Nova\Fields\Translatable;
class User extends Resource
{
// ...
/**
* Get the fields displayed by the resource.
*
* @param Request $request
* @return array
*/
public function fields(Request $request)
{
return [
Translatable::make(
Text::make('Name')
),
];
}
// ...
}