this is the html form in '**.blade.php' :
<form action="{{ route('ruby.destroy') }}" method="POST">
@csrf
@method('delete')
<button>delete</button>
</form>
this is the logic code in '**Controller.php' :
public function destroy($MessageId)
{
$chat = Ruby::find($MessageId);
dd($chat);
//$message->delete();
}
}
The probleme :
Missing required parameter for [Route: **.destroy] [URI: ********/{**}] [Missing parameter: chat].
PLS contact me to give me help to solve this error
Thanks.
Top comments (8)
PLS help me to fix this error
Hi,
This is Sourov Pal. I am a freelance web developer and Software Developer. I can do one of project for free. If you like my work you will pay me otherwise you don't need to pay. No upfront needed, no contract needed. If you want to outsource your work to me you may knock me.
My what's app no is: +8801919852044
Github Profile: github.com/sourovpal
Thanks
try this one:
Thanks you
Its solved
Hi there!
In destroy function have $MessageId parameter. You should remove this.
Why, This is the variable to get the message ID to delete it