towhid
252
2
Laravel

laravel relationship query

Posted 5 months ago by towhid

i have - visa category type list i have country list

i have many country and many type of category , but many category depend on many country , Example :

singapore has tourist visa category singapore has medical visa category again dubai has also tourist visa and medical visa

what relationship declare which model and how to show this data depend on id

please suggest the accurate code

when i save the country name then i collect category type id , but when i want to show the name of category its create problem . this is my -country

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