Laravel – How to prevent a BelongsToMany relationship from allowing `attach`
I have several purchasable models that have a many to many relation ship with the customer model. As such I am using a BelongsToMany relationship. BelongsToMany::make(__('Courses'), 'courses', Course::class) ->sortable() ->searchable(), To ensure a sepeate checkout process cannot be bypassed, I…