Ritu Singh
Problem:
I am trying to build a user and client page with laravel I created a page that can be used to create users. now I want to create a page just like that when I click those users but I keep on getting this problem. In order to map the clients to the user, I am taking the user_id as a route query
The GET method is not supported for route addClient/100. Supported methods: POST.
The problem is with the addClient method I presume I saw it just now help me modify it please
web.php
This is addclient.blade.php
This url isn't even changing
The ClientController class with addClient method
Solution:
You have defined your route as post in your web.php instead of get.
Change your route like this,
Answered by: >Mit Kathrotia
Credit: >Stack Overflow
Read more:
>Use Firebase Realtime Database with ASP.NET MVC App
>Setting up a Cloud Composer environment: Step-by-step guide
>Built Web API using ASP.NET (C#)
>Testing react components using Hooks and Mocks
>Plugins and Presets for Vuejs project
>How to Create an array based on two other arrays in Php