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