public function success(string $id, string $message, int $status = 200)
    {
        Log::info($id . ' : ' . $message);

        return response ()->json (['success' => true, 'id' => $id, 'message' => $message], $status);
    }
public function success(string $id, string $message, int $status = 200)
    {
        Log::info($id . ' : ' . $message);

        return response ()->json (['success' => true, 'id' => $id, 'message' => $message], $status);
    }
public function success ( string $ id , string $ message , int $ status = 200 ) { Log :: info ( $ id . ' : ' . $ message ) ; return response ( ) -> json ( [ 'success' => true , 'id' => $ id , 'message' => $ message ] , $ status ) ; }
Create success response

@param string $id
@param string $message
@param int $status
@return \Illuminate\Http\JsonResponse
Create success response