Settings

Usage

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.
1
{{ settings('field_name') }}
Copied!
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:
1
Mail::to(settings('mail'))->send(new CustomMail);
Copied!
Last modified 1yr ago
Copy link