I
I
Ivan Zhuk2020-10-12 09:08:56
Laravel
Ivan Zhuk, 2020-10-12 09:08:56

Can't find Controller?

Throws an Error Target class [ContactController] does not exist.
But everything seems to be correct, here is the
Web.php code

Route::post('contact/submit', '[email protected]')->name('contact-form');

ContactController.php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ContactController extends Controller
{
    public function submit(){
        return "Ok";
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2020-10-12
@ivanzuk761

What to do about this Laravel error?
How to prescribe Route in a new way in laravel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question