Method not allowed Http Exception laravel 5.4

Getting an error in the laravel simple class class with the following code

MethodNotAllowedHttpException

namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use app\Http\Requests; use Illuminate\Support\Facades\Auth; class ProfileController extends Controller { private $userId; public function __construct() { $this->userId = Auth::id(); } } 

Route:

 Route::post('user_profile',' ProfileController@insert '); 

Call: <form action="/user_profile" method="post">

+5
source share
1 answer

I need to run

 php artisan config:clear php artisan cache:clear php artisan route:clear 
0
source

Source: https://habr.com/ru/post/1271185/


All Articles