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-66289d3f51e5f306990548/]
#-> 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-66289d3f51e69271873645/]
[crayon-66289d3f51e6c124023510/]
[crayon-66289d3f51e6f541416614/]
[crayon-66289d3f51e73921904378/]
[crayon-66289d3f51e76059725703/]
Another Route
[crayon-66289d3f51e79570838532/]
[crayon-66289d3f51e7c008001236/]
[crayon-66289d3f51e7f383205794/]
#-> Changing Default NameSpace
[crayon-66289d3f51e82709364817/]
#-> Controller
[crayon-66289d3f51e85215034927/]
[crayon-66289d3f51e88135121049/]
[crayon-66289d3f51e8b619481918/]
Consstruct
[crayon-66289d3f51e8e238058457/]
Controller Calls Middleware
[crayon-66289d3f51e90657388439/]
#-> Path Route
[crayon-66289d3f51e93218183839/]
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-66289d3f51e97048367327/]
[crayon-66289d3f51e99265528807/]
#-> URL Checking
[crayon-66289d3f51e9d273549503/]
[crayon-66289d3f51e9f223187916/]
[crayon-66289d3f51ea2576526595/]
[crayon-66289d3f51ea5584673247/]
#-> Post Registration
[crayon-66289d3f51ea8177139839/]
#-> Response with cookie
[crayon-66289d3f51eab782892728/]
#->
[crayon-66289d3f51eaf713100839/]
[crayon-66289d3f51eb2696640891/]
[crayon-66289d3f51eb5759226647/]
[crayon-66289d3f51eb8647842949/]
[crayon-66289d3f51eba725803522/]
#-> ServiceProvider : Sharing data with all views.
[crayon-66289d3f51ebd999176324/]
# -> Using Blade : new View
[crayon-66289d3f51ec1071026009/]
#-> welcome . blade.php
[crayon-66289d3f51ec4595329176/]
#->
[crayon-66289d3f51ec7267729823/]
#-> Error Logging
[crayon-66289d3f51ecb286899814/]
#-> Forms
[crayon-66289d3f51ece766082762/]
#-> Localization
[crayon-66289d3f51ed2722097910/]
#-> Session
[crayon-66289d3f51ed6406414543/]
[crayon-66289d3f51ed8186218664/]
[crayon-66289d3f51edb756097275/]
[crayon-66289d3f51ede327064188/]
[crayon-66289d3f51ee1068876701/]
#-> Validation Controller
[crayon-66289d3f51ee4627077845/]
[crayon-66289d3f51ee9181341403/]
#-> Mailer
[crayon-66289d3f51eed510562697/]
#-> Ajax Controller
[crayon-66289d3f51ef1610224547/]
#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