SlideShare a Scribd company logo
Introduction to Laravel
A Beginner's Guide to the PHP
Framework
What is Laravel?
• • Laravel is a PHP framework for web
application development.
• • It provides an elegant syntax and follows
the MVC pattern.
• • Laravel simplifies common tasks like
authentication, routing, and caching.
• • It is open-source and has a strong
developer community.
Features of Laravel
• • MVC Architecture
• • Blade Templating Engine
• • Eloquent ORM (Object-Relational Mapping)
• • Built-in Authentication & Authorization
• • Artisan Console (Command Line Tool)
• • Database Migration System
• • API Support & Testing Features
Laravel Directory Structure
• • app/ - Contains the core application files
(Models, Controllers, etc.)
• • bootstrap/ - Bootstrapping the framework
• • config/ - Configuration files
• • database/ - Database migrations and
seeders
• • public/ - Entry point (index.php)
• • routes/ - Web and API routes
• • resources/ - Views, CSS, JavaScript files
Installation of Laravel
• 1. Install Composer (Laravel’s dependency
manager).
• 2. Run the command: `composer create-
project --prefer-dist laravel/laravel
myProject`.
• 3. Navigate to the project folder: `cd
myProject`.
• 4. Start the development server: `php artisan
serve`.
• 5. Open `http://127.0.0.1:8000` in a browser.
Laravel Routing Example
• • Laravel routes are defined in the
`routes/web.php` file.
• Example:
• ```
• Route::get('/hello', function () {
• return 'Hello, Laravel!';
• });
• ```
Blade Templating Engine
• • Blade is Laravel’s built-in templating
engine.
• • It allows reusability and dynamic content in
views.
• Example:
• ```
• @extends('layout')
• @section('content')
Eloquent ORM (Database
Handling)
• • Eloquent is Laravel’s ORM for database
interactions.
• • It allows developers to interact with
databases using PHP syntax.
• Example:
• ```
• $users = User::all();
• foreach ($users as $user) {
Conclusion
• • Laravel is a powerful and developer-
friendly PHP framework.
• • It provides built-in tools for authentication,
routing, and database management.
• • Blade templating and Eloquent ORM make
development easier.
• • Laravel is widely used for building modern
web applications.
Ad

More Related Content

Similar to Introduction_to_Laravel_Background DOCUMENTATION.pptx (20)

What-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptxWhat-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptx
AbhijeetKumar456867
 
Laravel Framework Notes Web Techonologies
Laravel Framework Notes Web TechonologiesLaravel Framework Notes Web Techonologies
Laravel Framework Notes Web Techonologies
binshehzad26
 
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Lorvent56
 
Web presentation
Web presentationWeb presentation
Web presentation
Solaiman Hossain Tuhin
 
Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)
Viral Solani
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
Obinna Akunne
 
Laravel : A Fastest Growing Kid
Laravel : A Fastest Growing KidLaravel : A Fastest Growing Kid
Laravel : A Fastest Growing Kid
Endive Software
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
ShaimaaMohamedGalal
 
Laravel 4 presentation
Laravel 4 presentationLaravel 4 presentation
Laravel 4 presentation
Abu Saleh Muhammad Shaon
 
Frequently Asked Questions About Laravel
Frequently Asked Questions About LaravelFrequently Asked Questions About Laravel
Frequently Asked Questions About Laravel
AResourcePool
 
Laravel & Composer presentation - extended
Laravel & Composer presentation - extendedLaravel & Composer presentation - extended
Laravel & Composer presentation - extended
Cvetomir Denchev
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introduction
Simon Funk
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Building RESTful APIs with Laravel A Complete Guide.pdf
Building RESTful APIs with Laravel A Complete Guide.pdfBuilding RESTful APIs with Laravel A Complete Guide.pdf
Building RESTful APIs with Laravel A Complete Guide.pdf
Grey Space Computing
 
Laravel session 1
Laravel  session 1Laravel  session 1
Laravel session 1
Ashish Kumar
 
Getting started with laravel
Getting started with laravelGetting started with laravel
Getting started with laravel
Advance Idea Infotech
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
Mayank Panchal
 
Laravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web ArtisansLaravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web Artisans
Windzoon Technologies
 
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON
 
Laravel Key advantange for Web Development
Laravel Key advantange for Web DevelopmentLaravel Key advantange for Web Development
Laravel Key advantange for Web Development
Siddhiinfosoft
 
What-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptxWhat-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptx
AbhijeetKumar456867
 
Laravel Framework Notes Web Techonologies
Laravel Framework Notes Web TechonologiesLaravel Framework Notes Web Techonologies
Laravel Framework Notes Web Techonologies
binshehzad26
 
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
Lorvent56
 
Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)
Viral Solani
 
Laravel : A Fastest Growing Kid
Laravel : A Fastest Growing KidLaravel : A Fastest Growing Kid
Laravel : A Fastest Growing Kid
Endive Software
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
ShaimaaMohamedGalal
 
Frequently Asked Questions About Laravel
Frequently Asked Questions About LaravelFrequently Asked Questions About Laravel
Frequently Asked Questions About Laravel
AResourcePool
 
Laravel & Composer presentation - extended
Laravel & Composer presentation - extendedLaravel & Composer presentation - extended
Laravel & Composer presentation - extended
Cvetomir Denchev
 
Laravel introduction
Laravel introductionLaravel introduction
Laravel introduction
Simon Funk
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Building RESTful APIs with Laravel A Complete Guide.pdf
Building RESTful APIs with Laravel A Complete Guide.pdfBuilding RESTful APIs with Laravel A Complete Guide.pdf
Building RESTful APIs with Laravel A Complete Guide.pdf
Grey Space Computing
 
Laravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web ArtisansLaravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web Artisans
Windzoon Technologies
 
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON
 
Laravel Key advantange for Web Development
Laravel Key advantange for Web DevelopmentLaravel Key advantange for Web Development
Laravel Key advantange for Web Development
Siddhiinfosoft
 

Recently uploaded (20)

report (maam dona subject).pptxhsgwiswhs
report (maam dona subject).pptxhsgwiswhsreport (maam dona subject).pptxhsgwiswhs
report (maam dona subject).pptxhsgwiswhs
AngelPinedaTaguinod
 
Controlling Financial Processes at a Municipality
Controlling Financial Processes at a MunicipalityControlling Financial Processes at a Municipality
Controlling Financial Processes at a Municipality
Process mining Evangelist
 
Mining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - MicrosoftMining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - Microsoft
Process mining Evangelist
 
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdfTOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
NhiV747372
 
Transforming health care with ai powered
Transforming health care with ai poweredTransforming health care with ai powered
Transforming health care with ai powered
gowthamarvj
 
Sets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledgeSets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledge
saumyasl2020
 
How Netflix Uses Big Data to Personalize Audience Viewing Experience
How Netflix Uses Big Data to Personalize Audience Viewing ExperienceHow Netflix Uses Big Data to Personalize Audience Viewing Experience
How Netflix Uses Big Data to Personalize Audience Viewing Experience
PromptCloudTechnolog
 
problem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursingproblem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursing
vishnudathas123
 
Feature Engineering for Electronic Health Record Systems
Feature Engineering for Electronic Health Record SystemsFeature Engineering for Electronic Health Record Systems
Feature Engineering for Electronic Health Record Systems
Process mining Evangelist
 
Process Mining at Deutsche Bank - Journey
Process Mining at Deutsche Bank - JourneyProcess Mining at Deutsche Bank - Journey
Process Mining at Deutsche Bank - Journey
Process mining Evangelist
 
Introduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdfIntroduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdf
AbdurahmanAbd
 
Process Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce DowntimeProcess Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce Downtime
Process mining Evangelist
 
presentacion.slideshare.informáticaJuridica..pptx
presentacion.slideshare.informáticaJuridica..pptxpresentacion.slideshare.informáticaJuridica..pptx
presentacion.slideshare.informáticaJuridica..pptx
GersonVillatoro4
 
Dynamics 365 Business Rules Dynamics Dynamics
Dynamics 365 Business Rules Dynamics DynamicsDynamics 365 Business Rules Dynamics Dynamics
Dynamics 365 Business Rules Dynamics Dynamics
heyoubro69
 
Process Mining as Enabler for Digital Transformations
Process Mining as Enabler for Digital TransformationsProcess Mining as Enabler for Digital Transformations
Process Mining as Enabler for Digital Transformations
Process mining Evangelist
 
hersh's midterm project.pdf music retail and distribution
hersh's midterm project.pdf music retail and distributionhersh's midterm project.pdf music retail and distribution
hersh's midterm project.pdf music retail and distribution
hershtara1
 
Time series for yotube_1_data anlysis.pdf
Time series for yotube_1_data anlysis.pdfTime series for yotube_1_data anlysis.pdf
Time series for yotube_1_data anlysis.pdf
asmaamahmoudsaeed
 
Chapter 6-3 Introducingthe Concepts .pptx
Chapter 6-3 Introducingthe Concepts .pptxChapter 6-3 Introducingthe Concepts .pptx
Chapter 6-3 Introducingthe Concepts .pptx
PermissionTafadzwaCh
 
AWS RDS Presentation to make concepts easy.pptx
AWS RDS Presentation to make concepts easy.pptxAWS RDS Presentation to make concepts easy.pptx
AWS RDS Presentation to make concepts easy.pptx
bharatkumarbhojwani
 
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
bastakwyry
 
report (maam dona subject).pptxhsgwiswhs
report (maam dona subject).pptxhsgwiswhsreport (maam dona subject).pptxhsgwiswhs
report (maam dona subject).pptxhsgwiswhs
AngelPinedaTaguinod
 
Controlling Financial Processes at a Municipality
Controlling Financial Processes at a MunicipalityControlling Financial Processes at a Municipality
Controlling Financial Processes at a Municipality
Process mining Evangelist
 
Mining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - MicrosoftMining a Global Trade Process with Data Science - Microsoft
Mining a Global Trade Process with Data Science - Microsoft
Process mining Evangelist
 
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdfTOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
TOAE201-Slides-Chapter 4. Sample theoretical basis (1).pdf
NhiV747372
 
Transforming health care with ai powered
Transforming health care with ai poweredTransforming health care with ai powered
Transforming health care with ai powered
gowthamarvj
 
Sets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledgeSets theories and applications that can used to imporve knowledge
Sets theories and applications that can used to imporve knowledge
saumyasl2020
 
How Netflix Uses Big Data to Personalize Audience Viewing Experience
How Netflix Uses Big Data to Personalize Audience Viewing ExperienceHow Netflix Uses Big Data to Personalize Audience Viewing Experience
How Netflix Uses Big Data to Personalize Audience Viewing Experience
PromptCloudTechnolog
 
problem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursingproblem solving.presentation slideshow bsc nursing
problem solving.presentation slideshow bsc nursing
vishnudathas123
 
Feature Engineering for Electronic Health Record Systems
Feature Engineering for Electronic Health Record SystemsFeature Engineering for Electronic Health Record Systems
Feature Engineering for Electronic Health Record Systems
Process mining Evangelist
 
Introduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdfIntroduction to systems thinking tools_Eng.pdf
Introduction to systems thinking tools_Eng.pdf
AbdurahmanAbd
 
Process Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce DowntimeProcess Mining Machine Recoveries to Reduce Downtime
Process Mining Machine Recoveries to Reduce Downtime
Process mining Evangelist
 
presentacion.slideshare.informáticaJuridica..pptx
presentacion.slideshare.informáticaJuridica..pptxpresentacion.slideshare.informáticaJuridica..pptx
presentacion.slideshare.informáticaJuridica..pptx
GersonVillatoro4
 
Dynamics 365 Business Rules Dynamics Dynamics
Dynamics 365 Business Rules Dynamics DynamicsDynamics 365 Business Rules Dynamics Dynamics
Dynamics 365 Business Rules Dynamics Dynamics
heyoubro69
 
Process Mining as Enabler for Digital Transformations
Process Mining as Enabler for Digital TransformationsProcess Mining as Enabler for Digital Transformations
Process Mining as Enabler for Digital Transformations
Process mining Evangelist
 
hersh's midterm project.pdf music retail and distribution
hersh's midterm project.pdf music retail and distributionhersh's midterm project.pdf music retail and distribution
hersh's midterm project.pdf music retail and distribution
hershtara1
 
Time series for yotube_1_data anlysis.pdf
Time series for yotube_1_data anlysis.pdfTime series for yotube_1_data anlysis.pdf
Time series for yotube_1_data anlysis.pdf
asmaamahmoudsaeed
 
Chapter 6-3 Introducingthe Concepts .pptx
Chapter 6-3 Introducingthe Concepts .pptxChapter 6-3 Introducingthe Concepts .pptx
Chapter 6-3 Introducingthe Concepts .pptx
PermissionTafadzwaCh
 
AWS RDS Presentation to make concepts easy.pptx
AWS RDS Presentation to make concepts easy.pptxAWS RDS Presentation to make concepts easy.pptx
AWS RDS Presentation to make concepts easy.pptx
bharatkumarbhojwani
 
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
2-Raction quotient_١٠٠١٤٦.ppt of physical chemisstry
bastakwyry
 
Ad

Introduction_to_Laravel_Background DOCUMENTATION.pptx

  • 1. Introduction to Laravel A Beginner's Guide to the PHP Framework
  • 2. What is Laravel? • • Laravel is a PHP framework for web application development. • • It provides an elegant syntax and follows the MVC pattern. • • Laravel simplifies common tasks like authentication, routing, and caching. • • It is open-source and has a strong developer community.
  • 3. Features of Laravel • • MVC Architecture • • Blade Templating Engine • • Eloquent ORM (Object-Relational Mapping) • • Built-in Authentication & Authorization • • Artisan Console (Command Line Tool) • • Database Migration System • • API Support & Testing Features
  • 4. Laravel Directory Structure • • app/ - Contains the core application files (Models, Controllers, etc.) • • bootstrap/ - Bootstrapping the framework • • config/ - Configuration files • • database/ - Database migrations and seeders • • public/ - Entry point (index.php) • • routes/ - Web and API routes • • resources/ - Views, CSS, JavaScript files
  • 5. Installation of Laravel • 1. Install Composer (Laravel’s dependency manager). • 2. Run the command: `composer create- project --prefer-dist laravel/laravel myProject`. • 3. Navigate to the project folder: `cd myProject`. • 4. Start the development server: `php artisan serve`. • 5. Open `http://127.0.0.1:8000` in a browser.
  • 6. Laravel Routing Example • • Laravel routes are defined in the `routes/web.php` file. • Example: • ``` • Route::get('/hello', function () { • return 'Hello, Laravel!'; • }); • ```
  • 7. Blade Templating Engine • • Blade is Laravel’s built-in templating engine. • • It allows reusability and dynamic content in views. • Example: • ``` • @extends('layout') • @section('content')
  • 8. Eloquent ORM (Database Handling) • • Eloquent is Laravel’s ORM for database interactions. • • It allows developers to interact with databases using PHP syntax. • Example: • ``` • $users = User::all(); • foreach ($users as $user) {
  • 9. Conclusion • • Laravel is a powerful and developer- friendly PHP framework. • • It provides built-in tools for authentication, routing, and database management. • • Blade templating and Eloquent ORM make development easier. • • Laravel is widely used for building modern web applications.
  翻译: