derekdunes
1 month ago

Laravel 7 sync issue using eloquent models

Posted 1 month ago by derekdunes

Please how do you perform this code $user->roles()->sync([1 => ['years' => true,'levels' => true], 2, 3]); using a for loop or for each

Please sign in or create an account to participate in this conversation.