Eloquent Model Example

Notes to get belongsToMany Data

Do not just use this script to retrieve data:

Correct script: