Nasr1
118
1
Laravel

Handling multiple objects in one action method

Posted 1 year ago by Nasr1

so i have this json object :- { "Id": 2, "Name": "Nasr City Tournament - Seventh District", "ArName": "دورة مدينة نصر - الحى السابع", "LogoUrl": "https://www.shopaardvark.com/media/catalog/product/W/S/WS-17642.jpg", "CompetitionTypeId": 2, "NumberOfTeams": 16, "YellowCardsToSuspend": 2, "CupImageUrl": "https://upload.wikimedia.org/wikipedia/en/thumb/4/4e/FIFA_Club_World_Cup_logo.svg/450px-FIFA_Club_World_Cup_logo.svg.png", "created_at": "2017-12-31 09:40:45", "updated_at": "2017-12-31 09:40:45", "competition_seasons": [], "competition_rounds": [] } in which each object depend on the object before it, i need to be able to create only one action method to handle this big object how i do this in laravel , or i mean how to create one action method to handle group of objects . please i need help and thanks in advance :)

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