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">
source share