Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for relation key to be an enum (#50311)
* Allow for relation key to be an enum If a foring key is being cast to an enum calling ->sync() will cause a TypeError: Illegal offset type. This resolves the issue by getting the value before using it as an array key. * Update InteractsWithPivotTable.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information