laravel ?? ?? ??? ()? ?? ?? ? ? ???? ????? ??????. ??? ???? ?? ??? ???? () ?? ??? ???? ???? ????? ??? ?????????. ??? null? ???? ??, ?? ? ?? ?? ???? {model} _id ?? ???? ???? ??????. ?? ??? ??? ?? Associate () ?? sync ()? ???? ?? ?? ?? ? ??? ??????. hasmanythrough? ??? ?? ??? ??? ?? ?? ?? ??? ?????? ???? ??? ??? ?? ?? ?? ?? SQL? ??? ???? ?? ????.
Laravel Eloquent ??? ????? ?????? ???? ? ????. Laravel? ?? ???? ?? ?? ??? ???? ??? ????? ?? ??? ?? ? ? ????.

???? ???? ????
??? with()
??? ??? ??? N 1 ?? ?? ? ?? ? ???? ????.

- ??? ?? ? ??? ??? ???? ??? ??????. ??? ??? ??? ???????? ????.
- ??? ??
with()
??? ?? ??? ??????.user :: with ([ 'post'=> function ($ query) { $ query-> ??? ( '??', ?); }]);
- ??? ?? ?
$user->posts
?? ??? ???? ????? ?? ?? ? ??? ??? ?? ??????.
?? with()
?? ??? ????? ????. ?? ??? ???? ???? ??? ?? ?? whereHas()
??????.
???? ??? ? ??? NULL? ?????
?? ??? ?? ? ??? ????? ?? ????. ?? ????? ??? ? ?? ??? ?? ? ??? ?? ???.

- ????? Eloquent? ?? ??
{model}_id
?? ?????. ?? ??,User
? ???Post
????user_id
?? ??????. - ?? ? ??? ???? ?? ??? ??????.
?? ?? ??? () { return $ this-> soldsto (user :: class, 'author_id'); }
- ?? ?? ??? ??? ID? ?? ??????? ????? ??????.
?? ?? / ?? ??? ?? ?????
??? ?? ???? ?? ????? ? ? ???? ?? ?? ?? ?? ?? ?? ??? ?????.
- ???? ?? ?? ?????
associate()
??????.$ post = new Post ([ 'title'=> 'new Post']); $ post-> user ()-> Associate ($ user); $ post-> save ();
- ?? ?? ??? (? : ??)? ???? ? ? ??? ?? ?? ???? ???? ?? ?? ????.
$ post-> tags ()-> sync ([1, 2, 3]);
?? ?? ???? ?? ?? ? ??? ??? $fillable
??? ?? ???????.
hasManyThrough
?? ?? ? ???? ??? ?? ??
hasManyThrough
???? ?? ?? ???? ???? ??? ? ?? ??? ? ????.
- ?? ?? ??? ?????.
return $ this-> hasmanythrough (post :: class, comment :: class);
?, ?? (?,? ???? ????? ???)? ?? ?? ???? ?????.
- ??? ? ??? ?? ??? ?? ???? ????? ?? ?? ??????.
??? ?? ????? ?? ??? ???? ?? ??? ?? ?? ?? ?? ?? SQL ??? ???? ?? ????.
??? ??? ???? ??? ? ?? ???? ???? ??? ??? ??? ?? ? ????? ??? ??? ?? ??????. ????????? ?? ????? ???? ?? ????? ?????.
? ??? 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)

??? ??











SPA (Single Page Applications) Laravel ? Vue.js? ???? ?? ? ? ????. 1) Laravel?? API ??? ? ????? ???? ??? ??? ?????. 2) vue.js?? ?? ??? ? ??? ??? ??? ??? ????? ? ??? ?? ??? ??????. 3) CORS? ???? ??? ?? ??? AXIOS? ??????. 4) Vuerouter? ???? ??? ??? ???? ??? ??? ??????.

Efficient methods for testing Laravel API interfaces include: 1) using Laravel's own testing framework and third-party tools such as Postman or Insomnia; 2) ?? ???, ?? ??? ? ?? ??? ??; 3) ?? ?? ??? ???? ?????? ??? ?????. ??? ??? ?? API? ???? ??? ???? ?? ? ? ????.

??? ?? Laravel ??? ?? ??? ?? ??? ?? ??? ? ????. 1. ??? ??? ?? ??? ? ? ?? ?? ?? ??. 2. ??? ?? ?? ???? ??? ?? ????? ??????. ??? ?? ?? ???? Laravel? ?? ???? ?? ?? ??? ???? ??, ?? ? ?? ?????? ?????.

Laravel?? ???? ??? ???? ??? ?????. 1) ??? ? ???? ?? ???? ?? ??; 2) ?? ?? ? ??? ??? ???. 3) Artisan Command? ???? ??? ?? ?? ??; 4) ?? ??? ???? ??; 5) Packagist? ?? ?? ? ?? ??; 6) ??? ??? ??; 7) ??? ?? ??; 8) ?? ?? ???? ??? ??.

Laravelsocialite ???? ???? Laravel ??? ??? ?? ??? ???? ?? ? ? ????. 1. ??? ??? ?? : ComposerRequirelaravel/Socialite ??. 2. ??? ?? ?? ? ?? ?? : config/app.php?? ?? ??? ??????. 3. API ?? ?? ?? : .env ? config/services.php?? ?? ??? API ?? ??? ??????. 4. ?? ???? ?? : ?? ??? ??? ????? ???? ?? ???? ? ?? ??? ??????. 5. FAQ ?? : ??? ???, ??? ???, ?? ? ?? ??? ?????. 6. ??? ?? :

Laravel?? ?? ??? ?? ?? ?? ??? ?????. 1. ??? ???? ???? .env ???? ?? ?? ??? ?????. 2. ??/web.php?? ???? ??? ??? ?????. 3. ??? ??? ??? ??; 4. ??? ??? ??? ??? ?? ?????? ???? ??? ?? ??? ??????. 5. ??? ?? ??? ?????? ??? ??????. 6. ???? ???? ??? ? ???? ?? ???? ?? ????? ??????.

Laravel ??????? ???? ?? ???? SQL ??, XSS (Cross-Site Scripting Attack), CSRF (Cross-Site Request Resperery) ? ?? ??? ???? ?????. ?? ???? ??? ?????. 1. SQL ??? ??? ?? ?? ??? ??? Eloquentorm ? QueryBuilder? ??????. 2. ??? ??? ???? XSS ??? ???? ?? ??? ??? ???? ???????. 3. CSRF ??? CSRF ?????? ?? ????? ?????? ?? ? AJAX ???? CSRF ??? ??????. 4. ?? ??? ???? ?? ?? ???? ???? ???? ?????. 5. ??? ?? ???? ???? ???? ?? ??? ? ?? ?? ? ?? ???? ?????.

????? Laravel? ??? ?????? HTTP ??? ?? ?? ???? ? ?????. ?? ?? : 1. ???? ?? : "Phpartisanmake : Middlewarecheckrole"??? ??????. 2. ?? ?? ?? : ?? ? ??? ?? ??? ????. 3. ???? ?? : kernel.php? ????? ??????. 4. ???? ?? : ??? ??? ????? ??????.
