Laravel? ???? MVC ????? ??? ? ?????. 1) LARAVEL ?? : Composer Create-Project-Prefer-Dist Laravel/Laravel Your-Project-Name ??? ??????. 2) ??, ???? ??? ?? : ??? ??? ????, ?? ??? ?? ??? ????, ???? ????, ???? ???? ?? ? ? ????. 3) ??? ?? : Routes/Web.php? ??/??? ?? ??. ? ??? ?? ??? ??? ?? ????? ???? Laravel ? MVC? ?? ??? ??? ? ? ????.
Laravel ?? ??? : ?????? ??? MVC ????
??, ?? ??! ??? ???? Laravel? ??? ??? ???? ?? ?????? ??????? ???? ???, ?? ??? ?????. ???? ?? ??? ??? ? Laravel? ???? ??? MVC (Model-View-Controller) ????? ????? ??? ?????. ? ???? ?? ??, Laravel? ?? ??? MVC ????? ???? ??? ?? ??? ??? ????. ??? ??? ?????? ??? ??? ?????!
Laravel? ?? ????? ? ??? ?? ???? ??? ??? PHP ??? ?????. ??? ??? ? ??????? ??? ?? ???? ?? ?? ???? - ?????? ????? ????. Model-View-Controller? ???? MVC ??? ??? ???? ?? ???? ? ????? Laravel? ?????.
?? ? MVC? ??? ??????? ??, ??? ??? ??? ?? ????. ?? ?? ???, ???? ?? ??? ???? ?, ????? ??? ??? ????? ????? ????. ? ?? ??? ??? ???? ???? ??? ??? ? ???? ? ?? ????.
???? ???? ?? ?? ?? - ???? ??!
Laravel??? MVC ????? ???? ?? ?????. ?? Laravel? ???????. ???? ?? ??? ??? ??????.
Composer Create-Project-Prefer-Dist Laravel/Laravel Your-Project-Name
?? ???? ??? ??? ?? ????? ???????. ???? ?? ??, ??? ?????? ???? ? ???? ?? ???? ?????.
???? ???? Post
??? ???????.
<? php ?? ???? ? \ ??; Illuminate \ Database \ Eloquent \ Model? ??????. ??? ???? ??? ????? { ?? ? $ fillable = [ 'title', 'content']; }
?? ???? ???? ?? PostController
??????.
<? php ?? ???? ? \ http \ ????; app \ models \ post? ?????. Illuminate \ http \ request? ??????. ??? PostController? ????? ????? { ?? ?? ?? () { $ post = post :: all (); return view ( 'posts.index', [ 'posts'=> $ posts]); } ?? ?? create () { return view ( 'posts.create'); } ?? ?? ??? (?? $ ??) { $ post = new post (); $ post-> title = $ request-> ?? ( 'title'); $ post-> content = $ request-> input ( 'content'); $ post-> save (); ???? ?? ( '/posts'); } }
??? ?????, ??? ??? ??? ???. resources/views/posts/index.blade.php
? ??????.
<! doctype html> <html lang = "en"> <??> <meta charset = "utf-8"> <title> ??? ??? </title> </head> <body> <H1> ??? ??? </h1> <ul> @foreach ($ post as $ post) <li> {{$ post-> title}}-{{$ post-> content}} </li> @endforeach </ul> <a href = "/posts/create"> ? ??? ??? </a> </body> </html>
? resources/views/posts/create.blade.php
:
<! doctype html> <html lang = "en"> <??> <meta charset = "utf-8"> <title> ??? ?? </title> </head> <body> <H1> ? ??? ?? </h1> <form ??? = "post"action = "/post"> @CSRF <label for = "title"> ?? : </label> <?? ?? = "text"id = "title"name = "title"??> <br> <br> <label for = "content"> ??? : </label> <TextArea id = "content"name = "content"??> </textRea> <br> <br> <?? ?? = "??"> ?? </button> </form> </body> </html>
?? ?? ?? ???? routes/web.php
?? ??? ???????.
<? php Illuminate \ Support \ Facades \ Route? ??????. App \ http \ Controllers \ PostController? ?????. route :: get ( '/posts', [postcontroller :: class, 'index']); route :: get ( '/posts/create', [postcontroller :: class, 'create']); route :: post ( '/posts', [postcontroller :: class, 'store']);
??? ??? ??? ??? ??? ????! ??? ?????? ?? ??? ??? Laravel MVC ????.
??? ???? ??? ??? ? ??? ?? ??????.
?? :
- ?? ?? ?? : MVC ??? ??? ???? ???? ?? ????? ?? ???? ?? ? ? ??????.
- ??? ? : ?? ? ????? ???? ?? ????? ?? ???? ??? ????? ???? ?? ? ????.
- ?? ??? : ?? ??? ???? ? ?? ??? ????? ??? ? ? ???? ?? ???? ?? ??????.
?? ? ? :
- ?? ????? : MVC ???? ?? ?? ? ?? ?? ?? ? ?? ???? ??? ??? ?? ? ????. ?? ??? ? ???? ??????.
- ?? ?? : ?????? ?? ??? ??? ?? ? ???? ?? ??? ? ????. ??? ????? ??? ???????.
- ?? ?? ?? : Laravel? ?? ???? ?????? ?? ?? ????? ???? ?? ??? ??? ?? ?? ?????. ?? ??? ??????? ???? ?????? ??? ???????.
? ??? ?????? ???? ?? ? ??? ????? ??? ???? ???? ????. ?? Laravel? ?? ?? ??? ???? ???? ???? ??? ? ??????. ?? ??, ??? ?? PostController
? store
???? ???? ? ????.
?? ?? ??? (?? $ ??) { $ validateddata = $ request-> validate ([[[ 'title'=> '?? | Max : 255', 'content'=> '??' ]); $ post = new post (); $ post-> title = $ validatedData [ 'title']; $ post-> content = $ validatedData [ 'content']; $ post-> save (); ???? ?? ( '/posts'); }
?? ?? ??????? ???? ?? ?? ? ???? ???? ?? ??? ????????.
??? Laravel? MVC ???? ???? ?????? ???? ?????. Laravel? ????? ??? ?????. ??? ????? ?? ?? ????? ??? ????. ??? ??, ??? ??? ?? ??? ??? ???? ?? ??? ????!
? ??? Laravel : ?????? ??? MVC ????? ?? ?????. ??? ??? 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)

N 1 ?? ??? ??? ?? ???? ?????? ?????? ?? ?? ????. 2. ???? ???? ???? ?? ??? ???????? ??? ??? ?? ? ??????. 3. ??? 2 ? ?? ?? Redis ?? ??? ?? ??? ?? ?? ??? ????? ??????. 4. ??? ????? ????? ????? Clear ()? ???? ???? ?????? ??? ????? ?????. 5. ?????? ??? ????? ???? ???? ? ??? ??? ?? ?? ? SQL ?? ??????. 6. ?? ??? ???? ?? ?????? ?? ?? ??? ?????? ?? ?? ?? ??? ???? ??? ??????. ORM? ???? ????? ?? ??? ????? ?? ???? ??? ???? ?? SQL ????, ??, ?? ?? ? ??? ???? ???????.

settings.json ??? ??? ?? ?? ?? ?? ?? ??? ??? VSCODE ??? ??? ???? ? ?????. 1. ??? ?? ?? : Windows? C : \ Users \\ AppData \ Roaming \ Code \ User \ Settings.json, MacOS IS /users//library/applicationsupport/code/user/settings.json, linux? /home//.config/code/user/settings.json; 2. Workspace ?? ?? : .vscode/settings project root ????

readOnlyPropertiesInphp8.2CanonlyBeassignedOnedOneDonceIntheConstructorAratDeclarationandCannotBemodififificificificifified

??, ??, ?? ?? ? ?? ??? ???? ?? ??? ?? ? ?? ???? ?????. 2. ?? ???? ???? ?? ??? ??? SONGSTOMONY ? HASMANY ?? ??; 3. ?? ? ? ?? ? ?? ??? ????? (?? ???? ?? ??? ? ??). 4. ?? ? ?? ??? ???? ?? ??? ???? ?? ? ?? ??? ???? ?? ??? ?????. 5. ?? ???? ??? ?? (?? ??)? ???? ?? ????? ??????. 6. ?? ??? ?? ??? ???? Laravel Signature URL? ???? ??? ??????. 7. ? ?? ?? ? ? ?? ??? ?? ?? ??? ?? ??? ?????. ?????? ??, ?? ?? ??? ??????????.

?? JavaScript? ???? ??? ??? ?? ??? ??? ??? ?? ??? ?? ??? ??? ???????. 1. HTML ???? ?? ???? ????? ??? ???? ????. 2. CSS ?? : ??? ?? ?? ??? ???? ?? ??, .dark-mode ???? ??? ?? ??? ???? var ()? ?? ??? ??? ?????. 3. JavaScript? ??? ???? ?? ???? ?? ??? ???? ?? LocalStorage? ????. 4. ??? ?? ? ? HTML ???? Dark-Mode ???? ???? ?? ??? LocalStorage? ?????. 5. ?? ?? ?? ??? 0.3 ? ?? ?????? ???? ???? ??????.

?? ?? ??? ???? ?? ??? ?? ?? ? ??? ???? VisualVM ?? JProfiler? ???? ?? ???? Async-Profiler? ?? ??? ?????. 2. ?? ??? ???, ??? ?????, StringBuilder? ???? ??? ? ??? ?? ????, ??? GC ??? ??????. 3. ??? ?? ?? ??? ????? ?? ??? ???? ?? ?????. 4. ??? ???, ?? ???? ????, ?? ???? ???, ??? ?? ????? ??????. 5. JVM ?? ?? ??, ???? ? ?? ? ?? ??? ???? ???? GC ??? ??????. 6. ?? ???? ??? ???, ?? ???? ?? ???? ???, ???? ?????, ?? ? ??? ??????. 7. JMH? ?? ? ???? ?? ??? ? ????

??? Laravel ????? ??? ???? ??????. 2. ??, ?????? ? ????? ???? ??????? ??????. 3. Routes/API.php?? RESTFUL ??? ?????. 4. PostController?? ??, ??, ?? ? ?? ???? ???? JSON ??? ?????. 5. Postman ?? Curl? ???? API ??? ???????. 6. ????? ??? ?? API ??? ?????. ????? ?? ??? ??? ??? ??, ???? ?? ??? Laravelrestapi? ????.

Eloquentorm? Laravel? ?? ?? ??? ?? ??????. ?? SQL ?? PHP ??? ?? ??????? ????? ????? ???? ?? ???? ????. 1. ? ??? ???? ?? ???? ???? ? ???? ?? ????? ?????. 2. ?? ??? ??? ???? ?? ????? ????? ????? ???? ? ? ????. 3. ?? ?? ??? ???? ??? ???? ?? $ ??? ??? ??? ???????. 4. ???, ???, ?? ?? ?? ??? ?? ??? ???? ??? ??? ?? ?? ???? ??? ? ? ????. 5. ?? ?? ???, Orderby ? ?? ??? ??? ?? ? ? ????. 6. ??? ??? ??? ? ??? ?? ? ??? ??? ? ???? ?????.
