'Custom Triggers and Bindings for Azure Function
We would like our Azure function to use Custom Trigger binding so if we want to change from Service Bus Trigger to HttpTrigger than we should be able to do it easily with some configuration / app settings change rather than a code change. Is there a way that we can write a custom trigger class implementation. We are currently using .Net core 3.1.
Solution 1:[1]
This is the example for a pivot table:
Rules:
- Need a migration to a third table
- The table's name need to be in singular and order by alphabetical order
- Ex.: patient_user with patient_id and user_id
- No need Model for this table
Add user as patient
$user = User:find(5);
$user->patients()->attach(1);
In your table patient_user you will have a record: user_id
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rui Costa |
