database/migrations/2019_11_29_071129_add_role_to_users.php
Method updateData
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function updateData()
{
$userRoles = DB::table('user_role')->select(['user_id', 'role_id'])->get();
$total = $userRoles->count();