Determining if a Translation Exists
- Problem. You want to determine if a translation exists for a particular key.
- Solution. Use the Lang::has() method. To check if a translation exists for the current locale pass a single argument to the method. ...
- Discussion. You can specify the locale to check with the second argument. if (Lang::has('message.welcome', 'es'))