protected function createRoles() { $roles = [['id' => 1, 'title' => 'Super Admin', 'slug' => 'super_admin'], ['id' => 2, 'title' => 'Admin', 'slug' => 'admin'], ['id' => 3, 'title' => 'User', 'slug' => 'user']]; $role_arr = []; foreach ($roles as $role) { $role_arr[] = \App\DB\Role::create($role); } return $role_arr; }