Should the variable type for language keywords be static or const? |
Hello everyone,
I'm designing a multilingual project, and I created a folder named Constants with a file called LanguageKeys.php inside it. The structure looks like this: PHP Code: namespace App\Constants; public static instead? These keys are saved to Redis from the database, and unless revalidation is done, the data is queried from Redis. Do you have any suggestions or thoughts on this? |
Messages In This Thread |
Should the variable type for language keywords be static or const? - by kuzeyybora - 11-11-2024, 12:38 AM
RE: Should the variable type for language keywords be static or const? - by InsiteFX - 11-11-2024, 11:43 PM
|