OOP - Programming Paradigm Based Concept of Objects
OOP - Programming Paradigm Based Concept of Objects
OOP - Programming Paradigm Based Concept of Objects
Classes are templates used in object-oriented programming to create objects, which are instances of that class.
Object is an instance of a class that defines what property, variable or functions of the class.
Inheritance – Sharing of Information (Extend all properties, functions, methods etc. from parent class to child class)
Encapsulation – Grouping of information (All functions and characteristics are related to the class)
Abstraction – Hiding of information (Hiding certain details and showing only essential info to the users)
Polymorphism – Redefining of Information (Overriding the methods of the child class of her parent class)
LARAVEL
Installation
Route ->
Npm install
Laravel includes a middleware that verifies whether the user of the application is authenticated or not.
Postman = tool for verifying API and interact with HTTP API
Post = request method that used when we need to send additional information
Put = request method where the client sends data that updates the entire resources
Patch = request method where the client sends data that updates the partial resources
Delete = request method where the client needs to remove the entire resources
Benefits of Laravel
- Template Tools
- Authentication and Authorization
- Inbuilt Libraries
- URL Generations
- MVC Architecture Support
- Artisan Tool Command Line
Eloquent
Query Builder:
1. Queries are highly readable while written using Eloquent comparing with Query Builder.
2. You can use methods, scopes, accessors, modifier etc inside of a Model which is easy to maintain.
JSON Web Token (JWT) is an open standard that allows two parties to securely send data and information as
JSON objects. This information can be verified and trusted because it is digitally signed. JWT
authentication has aided the wider adoption of stateless API services.
JWT is a token format. OAuth is an authorization protocol that can use JWT as a token.
Since HTTP driven applications are stateless, sessions provide a way to store information about the user across
requests.