Answer Posted / rachana devi
Localization feature of Laravel supports different language to be used in application.
You need to store all the strings of different language in a file and these files are stored at resources/views directory.
You should create a separate directory for each supported language.
All the language files should return an array of keyed strings as shown below.
<?php
return [
'welcome' => 'Welcome to the application'
];
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is eloquent orm?
How will you register service providers?
Explain service container?
How will you explain middleware in laravel?
How do you call artisan command in laravel?
Does laravel passport use jwt?
Explain about Form without CSRF token in Laravel ?
Differce between contracts and facades?
Difference between facades vs. Dependency injection?
Explain validations in laravel?
Explain closures in laravel?
Does laravel support caching?
What is the use of accessors and mutators in eloquent?
How can I hide all stack whoops error information when the application is in production?
What is difference between var_dump and print_r?