File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,31 @@ Require it with an explicit version constraint allowing its desired stability.
7373 php spark shield:setup
7474 ```
7575
76+ 2 . Configure `app/Config/Email.php` to allow Shield to send emails.
77+
78+ ```php
79+ <?php
80+
81+ namespace Config;
82+
83+ use CodeIgniter\Config\BaseConfig;
84+
85+ class Email extends BaseConfig
86+ {
87+ /**
88+ * @var string
89+ */
90+ public $fromEmail = 'your_mail@example.com';
91+
92+ /**
93+ * @var string
94+ */
95+ public $fromName = 'your name';
96+
97+ // ...
98+ }
99+ ```
100+
76101### Manual Setup
77102
78103There are a few setup items to do before you can start using Shield in
@@ -134,6 +159,31 @@ your project.
134159
135160 1 . Use InnoDB, not MyISAM.
136161
162+ 6 . Configure `app/Config/Email.php` to allow Shield to send emails.
163+
164+ ```php
165+ <?php
166+
167+ namespace Config;
168+
169+ use CodeIgniter\Config\BaseConfig;
170+
171+ class Email extends BaseConfig
172+ {
173+ /**
174+ * @var string
175+ */
176+ public $fromEmail = 'your_mail@example.com';
177+
178+ /**
179+ * @var string
180+ */
181+ public $fromName = 'your name';
182+
183+ // ...
184+ }
185+ ```
186+
137187## Controller Filters
138188The [Controller Filters](https://codeigniter.com/user_guide/incoming/filters.html) you can use to protect your routes the shield provides are:
139189
You can’t perform that action at this time.
0 commit comments