Laravel – Tutorial
PHP OOP
- https://www.w3schools.com/php/php_oop_destructor.asp
- https://www.tutorialspoint.com/laravel/retrieve_records.htm
- https://laravel.com/docs/7.x/events#generating-events-and-listeners
- https://www.nicesnippets.com/blog/laravel-8-event-example-tutorial
- https://laravel.com/docs/5.2/testing#interacting-with-your-application
- https://scotch.io/tutorials/create-a-real-time-shoutbox-with-laravel-events
- Test Facades
* PHP oop
How to install it
You need to get “composer” first
#-> composer create-project –prefer-dist laravel/laravel:^7.0 blog
Laravel has “artisan” file at Root directory.
#-> php artisan key:generate “PHP artisani kosturur, -arguments i pass edersin. ”
web :80/laravel/blog/public/
# -> Routes Located : project/routes/web.php
[crayon-670368f4476fb011060054/]
#-> views Located : project/resources/views/welcome.blade.php
# -> Middleware : Between Request – And Response Filter (Config Stored at project/Http/Kernel.php)
- Global Middleware : will run on every HTTP request
- Route Middleware :
[crayon-670368f447701995549183/]
[crayon-670368f447704071007205/]
[crayon-670368f447706325781846/]
[crayon-670368f447708991876798/]
[crayon-670368f44770b394308082/]
Another Route
[crayon-670368f44770d635461120/]
[crayon-670368f44770f985324079/]
[crayon-670368f447711370263225/]
#-> Changing Default NameSpace
[crayon-670368f447714873073795/]
#-> Controller
[crayon-670368f447716879757959/]
[crayon-670368f447717004914344/]
[crayon-670368f44771a641940089/]
Consstruct
[crayon-670368f44771c591409112/]
Controller Calls Middleware
[crayon-670368f44771e901196233/]
#-> Path Route
[crayon-670368f447720576016482/]
GET | /my | index | my.index |
GET | /my/create | create | my.create |
POST | /my | store | my.store |
GET | /my/{my} | show | my.show |
GET | /my/{my}/edit | edit | my.edit |
PUT/PATCH | /my/{my} | update | my.update |
DELETE | /my/{my} | destroy | my.destroy |
# You Can Assign Interface – Implicit Controller.
[crayon-670368f447722739268348/]
[crayon-670368f447725107485403/]
#-> URL Checking
[crayon-670368f447727999334186/]
[crayon-670368f447729382655837/]
[crayon-670368f44772b992736093/]
[crayon-670368f44772d863766374/]
#-> Post Registration
[crayon-670368f44772f262359850/]
#-> Response with cookie
[crayon-670368f447732861339529/]
#->
[crayon-670368f447735842303584/]
[crayon-670368f447737699528141/]
[crayon-670368f447739988667483/]
[crayon-670368f44773b868603158/]
[crayon-670368f44773d917648173/]
#-> ServiceProvider : Sharing data with all views.
[crayon-670368f44773f401024474/]
# -> Using Blade : new View
[crayon-670368f447742962106280/]
#-> welcome . blade.php
[crayon-670368f447744642319723/]
#->
[crayon-670368f447746776755022/]
#-> Error Logging
[crayon-670368f44774a497233848/]
#-> Forms
[crayon-670368f44774c126506756/]
#-> Localization
[crayon-670368f44774f789167729/]
#-> Session
[crayon-670368f447752628530051/]
[crayon-670368f447754581634169/]
[crayon-670368f447756308865642/]
[crayon-670368f447758935727935/]
[crayon-670368f44775a929582443/]
#-> Validation Controller
[crayon-670368f44775d947062511/]
[crayon-670368f447760643808486/]
#-> Mailer
[crayon-670368f447763145896595/]
#-> Ajax Controller
[crayon-670368f447767332332785/]
#Error Handling.
Reference:
- https://mkdev.me/en/posts/top-5-php-frameworks-laravel-vs-yii-vs-zend-vs-phalcon-vs-symfony-their-good-and-bad-sides