However, just to provide some code examples in Laravel.
An unscalable chunk of code(in my opinion) would be this:
$users=User::get();foreach($usersas$user){$user->name='Bob';// We set them all the same name for example$user->save();//This would be a query for each user}
If we had 100 users, this would be 101 queries.
//Instead, for this example, we could just call this:User::update(['name'=>'bob']);
Resulting in just one query.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
However, just to provide some code examples in Laravel.
An unscalable chunk of code(in my opinion) would be this:
If we had 100 users, this would be 101 queries.
Resulting in just one query.