Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function send(Request $request): RedirectResponse{ |
||
19 | |||
20 | $validatedData = $request->validate([ |
||
21 | 'name' => 'required', |
||
22 | 'email' => 'required|email', |
||
23 | 'message' => 'required', |
||
24 | ]); |
||
25 | |||
26 | Mail::to(config('contact.send_email_to'))->queue(new ContactMailable($request->message, $request->name,$request->email)); |
||
27 | |||
28 | Contact::create($validatedData); |
||
29 | |||
30 | return back()->with(['contact_saved'=>' contact saved successfully']); |
||
31 | } |
||
33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths