Laravel – Tutorial

PHP OOP

 *  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-656af18446d5b981869947/]
#-> 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-656af18446d63574085337/]
[crayon-656af18446d65108822211/]
[crayon-656af18446d67528158130/]
RoleMiddleware
[crayon-656af18446d6a916126469/]
[crayon-656af18446d6c066272943/]
Another Route
[crayon-656af18446d6e615714565/]
[crayon-656af18446d71210547139/]
TerminateMiddleware
[crayon-656af18446d73695183680/]
#-> Changing Default NameSpace
[crayon-656af18446d75262230110/]
#-> Controller
[crayon-656af18446d77224992095/]
[crayon-656af18446d79756207830/]
[crayon-656af18446d7b819400937/]
Consstruct
[crayon-656af18446d7e452246296/]
Controller Calls Middleware
[crayon-656af18446d80550496149/]
#-> Path Route
[crayon-656af18446d82333194953/]

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-656af18446d84778924041/]
[crayon-656af18446d87486743044/]
 

#->  URL Checking
[crayon-656af18446d89299713143/]
[crayon-656af18446d8b381934110/]
[crayon-656af18446d8d683977524/]
[crayon-656af18446d8f780967499/]
#-> Post Registration
[crayon-656af18446d91533019045/]
 

#-> Response with cookie
[crayon-656af18446d94764123005/]
#->
[crayon-656af18446d96076277304/]
[crayon-656af18446d99565171591/]
[crayon-656af18446d9b563889294/]
[crayon-656af18446d9d196390477/]
[crayon-656af18446d9f110225318/]
#-> ServiceProvider : Sharing data with all views.
[crayon-656af18446da1470730420/]
# -> Using Blade : new View
[crayon-656af18446da4397180110/]
#-> welcome . blade.php
[crayon-656af18446da6008980513/]
#->
[crayon-656af18446da8885852816/]
#-> Error Logging
[crayon-656af18446dab935021719/]
#-> Forms
[crayon-656af18446dae120212600/]
#-> Localization
[crayon-656af18446db0439546996/]
#-> Session
[crayon-656af18446db3245979404/]
[crayon-656af18446db5344775336/]
[crayon-656af18446db7634645811/]
[crayon-656af18446dba200697304/]
[crayon-656af18446dbc093466826/]
#-> Validation Controller
[crayon-656af18446dbe937314583/]
[crayon-656af18446dc1518277612/]
#-> Mailer
[crayon-656af18446dc4986824580/]
#-> Ajax Controller
[crayon-656af18446dc8075439615/]
#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