Laravel Khmer -Create resources/lang/km/auth.php , validation.php , pagination.php with Khmer translations. use Carbon\Carbon; public function boot() return view('posts.show', [ 'title' => __($post->title), 'created' => $post->created_at->isoFormat('LL'), 'content' => $post->content ]); Future improvements could include an official Laravel Khmer package with auto-slug, number-to-word conversion, and a Khmer-specific validation rule set. App::setLocale($locale); $post = Post::findOrFail($id); $locale = $request->segment(1); if (in_array($locale, ['en', 'km'])) app()->setLocale($locale); return $next($request); Convert Western numerals to Khmer: |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
|
Home |
Frequently Asked Questions |
Jobs |
Advertise | Privacy |
Terms and Conditions |
About Us | Contact Us |