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

#-> 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  :

RoleMiddleware

Another Route

TerminateMiddleware

#-> Changing Default NameSpace

#-> Controller

Consstruct

Controller Calls Middleware

#-> Path Route

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.

 

#->  URL Checking

#-> Post Registration

 

#-> Response with cookie

#->

#-> ServiceProvider : Sharing data with all views.

# -> Using Blade : new View

#-> welcome . blade.php

#->

#-> Error Logging

#-> Forms

#-> Localization

#-> Session

#-> Validation Controller

#-> Mailer

#-> Ajax Controller

#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

Laravel installation – Laravel yukleme

Download the laravel package from  GIT .

install it  with composer ,

 

Then  create   project 

Then  give the all of  permissions  to read write  LOGS !!!