PHP code example of aiman / thaana-latin-field
1. Go to this page and download the library: Download aiman/thaana-latin-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/ */
aiman / thaana-latin-field example snippets
use Aiman\ThaanaLatinField\ThaanaLatinField;
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
ID::make()->sortable(),
ThaanaTextField::make('Content', 'content')->convertToLatin('latin_content'),
ThaanaLatinField::make('Latin Content', 'latin_content'),
];
}