I
I
Ivan Zhuk2020-10-16 12:31:09
Laravel
Ivan Zhuk, 2020-10-16 12:31:09

Laravel error?

Tell me where is the mistake

Route::post([\App\Http\Controllers\ContactController::class, 'submit'])->name('contact-submit');

5f896859615ec179167054.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-sem, 2020-10-16
@ivanzuk761

The syntax is incorrect.
https://laravel.com/docs/8.x/routing
Should be something like

Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');

Otherwise, it's just not clear which uri to which controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question