1 | <?php |
||||
2 | |||||
3 | namespace JamesSingizi\Contact\Http\Controllers; |
||||
4 | |||||
5 | use App\Http\Controllers\Controller; |
||||
0 ignored issues
–
show
|
|||||
6 | use Illuminate\Http\RedirectResponse; |
||||
0 ignored issues
–
show
The type
Illuminate\Http\RedirectResponse was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
7 | use Illuminate\Http\Request; |
||||
0 ignored issues
–
show
The type
Illuminate\Http\Request was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
8 | use Illuminate\Support\Facades\Mail; |
||||
0 ignored issues
–
show
The type
Illuminate\Support\Facades\Mail was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
9 | use JamesSingizi\Contact\Mail\ContactMailable; |
||||
10 | use JamesSingizi\Contact\Models\Contact; |
||||
11 | |||||
12 | class ContactController extends Controller |
||||
13 | { |
||||
14 | public function index(){ |
||||
15 | return view('contact::contact'); |
||||
0 ignored issues
–
show
The function
view was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
16 | } |
||||
17 | |||||
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)); |
||||
0 ignored issues
–
show
The function
config was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
27 | |||||
28 | Contact::create($validatedData); |
||||
29 | |||||
30 | return back()->with(['contact_saved'=>' contact saved successfully']); |
||||
0 ignored issues
–
show
The function
back was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
31 | } |
||||
32 | } |
||||
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