Laravel ???????? ?? ?? ? API ?? ??
?? ?? ? API ??? Laravel ??????? ?????? ???? ???? ???? ??? ???? ? ?????. Laravel? ??? ?? ??? ?? ?????? ?? ????? ?????. ?? ??? throttle
???????. ? ????? ??? ?? ? ?? ??? IP ???? ??? ?? ?? ???? ?? ?? (????? Redis ?? Database? ????? ??)? ?? ?????. ??? ???? ????? 429 ?? ?? ?? HTTP ??? ?????.
?? ??? ????? ????? throttle
????? API ??? ?????. ?? ??, routes/api.php
???? :
<code class="php">Route::middleware('auth:sanctum', 'throttle:60,1')->group(function () { Route::get('/users', [UserController::class, 'index']); Route::post('/users', [UserController::class, 'store']); });</code>
? ?? ? ??? ?? 60 ?? ?? (60 ?? ??, 1 ?)?? ??? ?????. auth:sanctum
Middleware? ?? ? ??? ? ??? ??? ????? ??? ???? ? ??????. throttle
???? ?? ??? ?????. ?? ????? ??? ?? ?? ?? ?? ?? ??? ? ????. ?? ???? ???? ???????. Redis? ?? ?? ???? ??? ?? ?????.
?? ??? ???? Laravel API? ?????? ?? ??
throttle
????? ??? ?????? ?? ?? ??? API? ??? ?? ???? ? ????.
- ?? ?? : ?? API? ?? ?? ??? ???? ????. ?? ??? ??? ?? ?? ?? ???? ?? ?? ??? ??????. ?? ??, ??? ??? ?? ???? ? ???? ???? ?? ??? ?? ? ????.
- ??? ?? ???? : IP ?? ???? ?? ??? ?? ???? ??????. ?? ?? ? ???? ???? ??? ???? ??? ? ???? ???? ??? ??? ?????. ??? ?? ??? ? ???? ?????? ?? ? ? ????.
- ?? ?? ??? ?? : ?? ??? ?? ?? ??? ?? ?????. ?? ??? ??, ?? (? : ??, ?? ?? ?? ?? ?? ?? ??), ?? ? ?? ??? ??????.
- ???? ? ?? : ??? ? ?? ?? ?? ?? ??? ???? ?? ?? ?? ??? ????????. ?? ??? ?? ?? ? ? ??? ?? ??? ???? ??? ? ??? ????? ??? ? ????.
- ?? ?? ? ?? : ????? ?? ?? ??? ??????. ??????? ??? ?? ??? ???? ??? ??? ??? ????? ??? ???? ? ?? ????.
Laravel? ?? ?? ??? ?? ?? ??? ??? ?????
Laravel? ?? 429 ??? ?? ??? ?????. ?? ??? ????? ??? ?? ???? ???? ???? ??? ?? ? ? ????. ?? ?? ? ??? ?? ??? ?????? ?? ? ? ????.
?? ??, ??? ?? ?? ???? ????.
<code class="php"><?php namespace App\Exceptions; use Illuminate\Http\JsonResponse; use Illuminate\Validation\ValidationException; use Illuminate\Auth\AuthenticationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Symfony\Component\HttpKernel\Exception\HttpException; use Throwable; use Illuminate\Http\Response; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; class Handler extends ExceptionHandler { public function render($request, Throwable $exception) { if ($exception instanceof HttpException && $exception->getStatusCode() === SymfonyResponse::HTTP_TOO_MANY_REQUESTS) { return response()->json([ 'error' => 'Too Many Requests', 'message' => 'Rate limit exceeded. Please try again later.', 'retry_after' => $exception->getHeaders()['Retry-After'] ?? 60, //Seconds ], SymfonyResponse::HTTP_TOO_MANY_REQUESTS); } return parent::render($request, $exception); } }</code>
? ??? 429 ??? ?? ?? ???? ?? ?? ? ??? ??? ???? retry_after
??? ?????? ???? ??? ??? ?? JSON ??? ?????. ???? ?? ?? ??? ?? ? ?? ???? ? ??? ??????? ??? ?? ? ? ????.
Laravel? ?? ?? ?? ?? ? ??? ?? ??
Laravel? throttle
????? ?? IP-address ?? ?? ??? ?????. ??? ??? ?? ?? ? ?? ? ??? ???? ??? ??? ?? ? ? ????.
- IP ?? : ?????? IP ??? ???? ??? ???? ?? ??? ?? ?????. ?? ??? ?? ???? ??? ????? ??? ?? ?? IP ??? ?? ? ? ????.
- ??? ?? : ?? ? ???? ???? ??? ?????. ???? ??? ?? ??? ???? ??? ? ?????? ? ?? ??? ?????? ??? ?????. ?? ???? ??? ??? ?????.
- ?? ??? ? : ?? API ??? ?? ?? ?? ??. ?? ?? ? ?? ???? ?? ?? ? ??? ?? ??? ?? ??? ?????.
- ?? ? ?? : ??? ??? ?? ? ? ????. ?? ??, ?? ? ??? ?? IP ?? ??? ?? ? ???? ???? ?? ? ??? ?? ????? ? ????. IP ??? ??? ID? ?? ???? ??? ?? ?? ?? ?????? ?? ? ? ????.
??? ??? ???? ?? ?? ????? ?? ?? ? ?? ?? ??? ?? ????. ??? API? ?? IP ?? ???? ??? ? ????. ??? ??? ???? ??? ?? ????? ?? IP ?? ? ??? ?? ??? ??? ? ??? ?? ??? ?????. ???? ?? ??? ??? ??? ???? ?? ?? ?? ?? ? ?? ??? ?? ??? ?????.
? ??? Laravel ???????? ?? ?? ? API ??? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

TOWORKEFCITIVE WITHPIVOTTBLESINLARAVEL, FIRDSCESSPIVOTDATAUSINGWITHPIVOT () ORWITHTIMESTAMPS (), thenupdateentrieswithupdatee XistingPivot (), ManagerElationshipsviadetach () andsync (), andusecustompivotmodelswheneded.1.usewithpivot () toincludescificcol

LaravelProvideAcleanAnandflexiblewaytosendNotificationsViamultipleChannels LikeEmail, SMS, In-Appalerts ? PushNotifications.youdeFinenotificationChannelsinThevia () MethodofanotificationClass, and ortovonage (), Ortovonage ()

Laravel ?? ???? 4 ?? ?? ??? ?? ?? ???? ???? ???? ? ????. 1. ?? ????? ???? ?? ??? ??? ??? ?? ???? ??? ???? ?????? ??? ??? ????? ?? ??? ?? ???? ??? ??????. 2. ???? ?? ????? ??????? ?????, n 1 ??? ???, ?? ??? ????, ??? ??, ??? ?? ? ?? ? ?? ??, ?? ??? ????. 3. ?? ?? ?? ? ?? ???? ??? ??? ?? ?? ??? ? ??? ???? ???? ???? ???? ???? ? ?? ????? ??????. 4. ??? ?? ? ???? ??? ??? ??? ?? ???? ????? ?? ?????? ????? ?? ???? ? ??? ?? ??? ????? ??????.

Laravel ????? ?????? ??? ???? ???? RefreshDatabase ??, ??? ??? ??, ?? ??? ?? ? ??? ?? ?? ??? ?????. 1. ?? ??? ???? ? ???? ??? ??????? ??????? ???? ?? ?????? ??? ???? ?????????. 2. ?? ??? ???? ??? ???? ??? ?? ???? ?? ?? ???? ?????. 3. DatabasEtransactionStrait? ???? ??? ?? ??? ????? ? ?????????. 4. ???? ???? ???? ??????? ???? ??? ? ?? ? ??????? ?? ??????. ??? ??? ???? ???? ???? ???? ?? ??? ? ??? ??? ?? ???? ?????.

Laravelsanctum? SPA ?? ??? ??????? ?? ???? ?? API ??? ??? ?? ??? ?? OAUTH2 ??? ??? ????? ?????. 1. Sanctum? ?? ?? ??? ????, ??? ???? ?????. 2. Passport? ?? ?? ? ????? ?? ??? ?? ??? ????? ????, ?? ???? ?????? ?????. 3. ?? ?? ? ??? ? ???? ?? ?? ??? ????. 4. ?? ??? ?????? ??? ???? ??? ?? ??? ??? ???? ?????. ??? ? ???? ?? ??? ?? OAUTH2 ??? ???? ??? ???????.

Laravel? ?? ???? ?????? ???? ??? ??????. 1. DB :: Transaction () ???? ???? ??? ???? ???? ?? ?? ?? ?? ?? ??; 2. ?? ? ????? ???? ?? ???? ?? ????? ????? ?? ???? ??? ???? ???? ??? ?? ????. 3.?? ??? ??? ??? ????? ??? begintransaction (), commit () ? rollback ()? ?? ?? ?? ??? ?????. 4. ?? ???? ??? ?? ????, ??? ?? ??, ??? ?? ? ?? ?? ??? ?????. ????? ?? ?? ??? ???? ?? ???? ??? ? ??? ???? ? ????.

Laravel?? HTTP ?? ? ??? ???? ??? ?? ???, ?? ?? ? ?? ???? ??? ????? ????. 1. ?? ???? ?? ? ? ?? ????? ?? ?? ????? ???? input () ?? ?? ???? ???? ??? ?? ??? ?? validate () ?? ?? ?? ???? ?? ? ? ????. 2. Return Response? ???,??, JSON, ?? ?? ? ??? ?? ?? ? ???? ??? ?????. 3. ?? ???? ?? ? ?? ?? () ??? ? Store ()? ???? ??? ???????. ????? ?? ?? ?? ? ??? ?????? ???? ??? ??????? ??? ? ????.

Laravel?? ??? ??? ??? ???? ?? ???? ??? Route () ??? ??? ???? ????. Route () ??? ??? ?? ??? ???? ??? ???? ???? ?? ?? ???? ???? ????. 1. Route ( 'user.profile', [ 'id'=> 1])? ?? ???? ????? ?? ??? ?? ??? ?????. 2. ?? ?? ?? ? ? ?? ? ?????? ??? Route ( 'user.post.show', [ 'id'=> 1, 'postId'=> 10]? ?? ??? ??? ??? ????. 3. ??? ????? ?? ???? ???? ?? ?? ? ? ????. 4. ??? ?? ??? ???? ??? Route ( 'user.post',
