Yahoo Malaysia Web Search

Search results

  1. Mar 15, 2019 · Either change the form to use PUT or change the line Route::put ('/edit','ProjectController@update'); to Route::post ('/edit','ProjectController@update'); When you find the Project, you should also check the find () return a valid Project object, not a null.

  2. The error actually explains the problem. The method POST is not supported for the route you're using. You are trying to post to the route: admin.events.index but you actually want to post to the route events.add. Route::post('/addEvents', 'EventsController@addEvent')->name('events.add'); {!!

  3. Check Route Definition: Ensure that the route for admin/login is defined to accept POST requests in your routes/web.php or routes/api.php file. It should look something like this: Copy Route::post('admin/login', 'AdminController@login'); Check CSRF Protection: Laravel includes CSRF protection on POST requests by default. Make sure that your ...

  4. It looks like you are missing the @method('POST') directive in your form. This directive is necessary to tell the browser that the form should be submitted using the POST method. Try adding the following line to your form: Copy @method('POST')

  5. Maybe check the actual request in your devtools. Also, you can check your registered routes; php artisan route:list. Obviously, you are aware that the store route should be POSTed, so the @method('put') is not valid (by convention).

  6. Apr 26, 2021 · The POST method is not supported for this route. Supported methods: GET, HEAD. I have this when I click on "+". My routes : Route::get('/comparateur', function () { . return view('comparateur'); })->name('comparateur'); Route::post('comparateur', 'ComparateurController@post')->name('comparateur'); app/http/livewire/counter.php : <?php.

  7. May 19, 2023 · Error 1. GET Method is not Supported for this Route. This error may appear in a few cases. Reason 1. Redirect to Route that accepts POST only. For example, you have a route that accepts POST only: routes/web.php. Route::post('/posts', 'PostController@store')->name('posts');