Jump to content
in2tech

Are these Laravel references in v7?

Recommended Posts

Alright so for the longest time I wondered what some of these were, such as @lang('common.dashboard') , which I now know are references to display names. Are these referenced some where and we can change them or choose from a list? Not sure what these mean, {{ trans_choice('common.pilot', 2) }} , or what the number at the end means.

 

Just wondering. I know we can place static text where we need too to replace those!

Thanks!

Share this post


Link to post
Share on other sites
5 hours ago, Nabeel said:

They're all Laravel built-ins for the Blade templating engine

Although I am still going through the Laravel 5.7 Tutorials, I don't grasp these instead of just test yet? But I did find the master file, just trying to understand why these instead of text. Is it like a CSS file one reference takes care of them all? Or something like that?

Share this post


Link to post
Share on other sites

Those insert the phrases from the resources/lang files. So if someone has it set to Spanish, it'll use the Spanish translation files

Share this post


Link to post
Share on other sites
18 hours ago, Nabeel said:

Those insert the phrases from the resources/lang files. So if someone has it set to Spanish, it'll use the Spanish translation files

Cool, makes total sense now!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×