??? ??????? ????? ???? ?? ?? ? ?? ??? ???? ??? Laravel ?????? ????? ???? ????. ??????? ??? ? ??? ?? ??? ??? ???? ??? ??? ?? ???? ?? ???? ????? ??????? ???? ?? ?? ??? ?????. Laravel ??????? ?? ??? ?? ??? ??? ?? ??? ??? ???? ? ?? ?????.
Laravel? ?? ???? ?? ??? ? ?? ???? ?? ??? ?? ?? ??? ?????. ? ???? Laravel? ?? ??? ?? ??? ???? ?? ???? ???? ???? ??? ?? ?????.
- ?? ??? ?? ??
Laravel ?????? ??? ?? ???? ?? ??? ???? ??? ? ?? ? ?? ?? ??? ?? ??? ?????. ??? ????? ???? ?? ??? ?? ?????.
- required: ?? ?????.
- ???: ??? ??? ???? ???.
- ??: ???? ???.
- max: ???.
- min: ???.
- ??: ??? ??? ???? ???.
- in: ??? ? ? ???? ???.
?????? ??? ?? ??? ???? ?? ?? ?????. "username"??? ?? ??? ???? ???? ?? verifyInput??? ???? ??? ?????. ??? ??? ????.
$this->validate($request, [ 'username' => 'required|min:3|max:20' ]);
? ??? "username" ??? ???? ?? ??? 3?? 3 ???? ?????. 20?, ??? ??? ???? ??? ValidationException? ?????.
- ??? ?? ??? ?? ??
?? ??? ?? ?? ??? Laravel ?????? ???? ???? ??? ?? ??? ?? ?? ????. ??? ??? ?? ??? ?? ??? ?? ?? ??? ?? ??? ? ????. "password"?? ?? ??? ???? ???? ??? ??? ?????. ???? ???? ???, ?? ? ?? ??? ????? ?? ?? ??? ??? ????.
1??: ??? ?? ?? ??
Validator::extend('my_password', function ($attribute, $value, $parameters, $validator) { return preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*(_|[^w])).+$/', $value) && strlen($value) >= 8 && strlen($value) <= 20; });
? ????? ???? ??? ??? ???? ????? ???? "my_password"?? ?? ??? ?????. ? ??? ?? ??? ??? ????? ?? ??? ???? ?? true? ?????.
2??: ??? ?? ??? ?? ?? ??
??? ?? ??? ?? ??? ???? ?? ?? ??? ?? ??? ???? ?? ?????. ??? ?? ?? ??? ??? ?? ??? ?? ??? ????? ?? ???. ?? ??? "password"? ?? ?? ??? ???? ??? ?????. ??? ??? ????.
$this->validate($request, [ 'username' => 'required|min:3|max:20', 'password' => 'required|my_password' ]);
? ????? ?? ??? "my_password"? ?????. ???? ??? ??? ?? ??? ???? ??? ?????.
- ?? ??? ??? ??
Laravel ???????? ??? ?? ?? ???? ??? ?? ??? ??? ? ????. ?? ??? ????.
???? ?? ?? ???? ??? ???? ??? ???? ??? ?? ? ? ????.
1??: ?? ??? ??
$messages = [ 'my_password' => 'The password must contain upper and lowercase letters, numbers, and special symbols. Its length must be between 8 and 20 characters.' ];
? ????? "my_password"?? ?? ???? ??????. .
2??: ??? ?? ??? ??
?? ???? ???? ?? ??? ?? ??? ?? ??? ???? ?? ?????. ??? ??? ???? ???? ??? ?? ??? ??? ?? ???? ? ?? ?? ??? ????? ?? ???. "????" ??? ?? ?? ???? ??? ???? ??? ???? ??? ??? ????.
$this->validate($request, [ 'password' => 'required|my_password' ], $messages);
? ????? ?? ???? ? ?? ????? ??? ?? ???? ??????. ???? ??? ??? ?? ??? ???? ??? Laravel? ??? ??? ?? ???? ?????.
??
? ????? ?? ??? ?? ??? ??? ?? ??? ?? ??? ???? ??, ?? ???? ??? ???? ??? ???? Laravel ?? ??? ?? ??? ?? ??????. Laravel? ??? ?? ?? ??? ?? ?????? ?????. Laravel? ?? ?? ??? ???? ?? ???? ?? ???? ??????? ??? ??? ? ????.
? ??? laravel ?? ??? ?? ??? ?? ?????. ??? ??? 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

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?? ??? ??? ??? ???? ?? ???? ??? Route () ??? ??? ???? ????. Route () ??? ??? ?? ??? ???? ??? ???? ???? ?? ?? ???? ???? ????. 1. Route ( 'user.profile', [ 'id'=> 1])? ?? ???? ????? ?? ??? ?? ??? ?????. 2. ?? ?? ?? ? ? ?? ? ?????? ??? Route ( 'user.post.show', [ 'id'=> 1, 'postId'=> 10]? ?? ??? ??? ??? ????. 3. ??? ????? ?? ???? ???? ?? ?? ? ? ????. 4. ??? ?? ??? ???? ??? Route ( 'user.post',

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

Laravel? ?? ??? ?? ?? ??? ?? ?? ??? ???? ??? ??????. ?? ???? ?? ??? ????? ? ???? I/O ?? ? ?? ?? ??? ???? ???? ??? ?? ? ????. 1. ?? ????? ?? ? ? ???????? ??? ????? ?? ???? ??????. 2. ??? ? ??? ?? ? ? PhPartisAnconfig? ?? ???????. 3. ?? ??? ??? ??? ???? ?? ?? ?? ???? ???? ????. 4. ?? ?? ??? ???? ?? ??? ??? .env ??? ???? ?? ???????.
