app/Http/Controllers/ForumController.php
/**
     * @param Content $content
     * @param ClassifierService $topicService
     * @param DestinationService $destinationService
     * @return JsonResponse
     */
@param Content $content
@param ClassifierService $topicService
@param DestinationService $destinationService
@return JsonResponse
@param Content $content @param ClassifierService $topicService @param DestinationService $destinationService @return JsonResponse
public function editPostForm(Content $content, ClassifierService $topicService, DestinationService $destinationService): JsonResponse
    {
        $destinations = $destinationService->getDestinations();
        $topics = $topicService->getTopics();
        return response()->json([
            'post' => new ForumPostResource($content),
            'destinations' => $destinations,
            'topics' => $topics
        ]);
    }
public function editPostForm ( Content $ content , ClassifierService $ topicService , DestinationService $ destinationService ) : JsonResponse { $ destinations = $ destinationService -> getDestinations ( ) ; $ topics = $ topicService -> getTopics ( ) ; return response ( ) -> json ( [ 'post' => new ForumPostResource ( $ content ) , 'destinations' => $ destinations , 'topics' => $ topics ] ) ; }
@param Content $content
 @param ClassifierService $topicService
 @param DestinationService $destinationService
 @return JsonResponse
@param Content $content @param ClassifierService $topicService @param DestinationService $destinationService @return JsonResponse