afoysal
1 month ago
229
2
Laravel

Function argument is not available inside AJAX request

Posted 1 month ago by afoysal

May be I could not express my issue properly in title. I am sorry for that.

I have below code

public function showAddresses(Request $request, $letter= null)
{
        if ($request->ajax()) {
           Log::info($letter);    //$letter  is not available 
        }
}

$letter is not available inside AJAX call.

Please sign in or create an account to participate in this conversation.