PHP code example of motwreen / translation
1. Go to this page and download the library: Download motwreen/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/ */
motwreen / translation example snippets
$options = ['prefix'=>'admin/translation/','middleware'=>['web','auth:admin']];
Translations::routes($options);
public function store(Request $request){
$category = new App\Category;
$category->name => ['en'=>'Test Name','du'=>'Miene name ist Test'];
$category->description => ['en'=>'Test Description','du'=>'Miene name ist Description'];
$category->save();
}