laravel relationship polymorphic code example Example: laravel polymorphic relationship why we need this relation orm, $user->roles()->toggle([1, 2, 3]);