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 the use of blade?
Define composer.
Explain the middlewares in laravel?
Can you exclude uris from csrf protection in laravel? Explain
What are the Forms in Laravel ?
How to create custom middleware in laravel?
What is the latest version of laravel?
What is meant by Retrieving Input ?
What do you understand by database migrations in laravel? How can we use it?
How do I assign several roles to users and permit the users to perform some actions based on those roles?
What is method spoofing in laravel?
Explain events in laravel?
Does laravel passport use jwt?
How do I know laravel version?
What is namespace in php laravel?