#### Category : limit

In my project i have so many gettype API’s,in every page we have one limit options(25,100,1000,10000) for example users?limit=25 ,if any one select more than 1000 it should be restricted to 1000 itself,please help me to achieve this thing.. Expected:- /users?limit=10000 if i set limit is equal to more than 1000 it should get the ..

We’re using Laravel (8) rate limiter and running into constant duplicate key violations in our cache table. Postgres is throwing fits because of the constant attempts to write to the cache with the same key. We’re getting duplicate key value violates unique constraint "cache_key_unique" errors, and it looks like every time (and with everyone) it’s ..

Hii Im making project for school, and its a site where users can upload videos, I set the max upload file to 85MB on php.ini, the problem is that if I upload files larger than this then QueryException is thrown, same happens if I fill a description too large or a name too large. This ..

as we know when we code on localhost we can go directly to dashboard admin on our website without login first by typing the link. so how we can stop that? so if we want to access the admin dashboard we really have to log in first Sourc..

I have a many-to-many relationship as: class Game extends Model { public function players() { return $this->belongsToMany(‘AppPlayer’); } } class Player extends Model { public function games() { return$this->belongsToMany(‘AppPlayerGame’); } } I have 500k+ game_player entries, foreign keys are made. It costs a long time to get the result or even memory exhausted when ..
I’m currently developing a coupon / discount feature in Laravel with LiveWire I have a perfectly working function that checks if the coupon code is valid. public function refreshCart(Request $request = NULL) {$this->cart = Session::has(‘cart’) ? Session::get(‘cart’) : null; // Reset previously entered coupon \$this->coupon = NULL; // Check if new coupon code is ..