i think this is where you're getting the error
default:
$nr->position = 1;
break;
shouldn't it be $nu->position = 1;
not $nr?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community