Guys i have doubt, i need to create a user defined function in POST method.
let me explain what i did
my route
Route::resource('MyTeam', 'MyTeamController');
Route::post('ManageTeam', 'MyTeamController@ManageTeam')->name('ManageTeam');
my form
<form name="team_check" id="team_check" method="post" action="{{ route('ManageTeam') }}">
if i use like above i get the error message
The GET method is not supported for this route. Supported methods: POST.
but if i use get in both side it works fine. but if i use POST in both side, i get the above error message but, this sometimes the error message is not there, works fine. sometimes iam getting this error message.
- if i use more than one form tag with different function in a form this error comes??
2)basically a resource controller has index,create, store, show,edit,update, destroy.
without resource controller i need to create a controller with these functions means what should i do
i can give like this php artisan make:controller MYNEWcontroller so i have created a controller now how to declare this in route.php
i expect like this in this new controller with post method.
userdefinedcreate(),
userdefinedindex(),
userdefinedstore(Request $request),
userdefinedshow($id),
userdefinededit($id),
userdefineupdate(Request $request, $id),
userdefineddestroy($id),
Kindly some one help please