Route::post('contact/submit', 'ContactController@submit')->name('contact-form');
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ContactController extends Controller
{
public function submit(){
return "Ok";
}
}