skip to Main Content

how to understand this sentence in laravel

Im trying to understand what the sentence $request->user()?->id ?: $request->ip() does in this function protected function configureRateLimiting() { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); }); } According to my understanding it will limit the rate attempts to…

VIEW QUESTION

I have this object and I need to remove the repeated rfcs from the catalog, how is it possible to do this? – Laravel

I have this object in php: $object = [ [ {"catalogo": "C400047", "rfc_inf_aval": "CIS981002NK4", }, {"catalogo": "C140064","rfc_inf_aval": "MZT8501014S6",}, {"catalogo": "C400047","rfc_inf_aval": "MZT8501014S6",}, {"catalogo": "C400047","rfc_inf_aval": "CIS981002NK4",}, {"catalogo": "C140064","rfc_inf_aval": "MZT8501014S6",}, {"catalogo": "C140064","rfc_inf_aval": "MZT8501014S6",}, {"catalogo": "C140064","rfc_inf_aval": "MZT8501014S6",}, {"catalogo": "C140064","rfc_inf_aval": "CIS981002NK4",}, ], ] and it…

VIEW QUESTION
Back To Top
Search