The Settings module allows you to add any global settings for your website. This can be, for example, the website name or the email address where your visitors can contact you. You can get the value of any setting by using the settings() helper function.
{{ settings('field_name') }}
Of course, you can use that in the back-end. Here is an example on how to send a message to the main e-mail address defined in the settings:
Mail::to(settings('mail'))->send(new CustomMail);
Copy link