SlideShare uma empresa Scribd logo
1 de 50
Introduction
Who am I?
• Simon Funk
• CEO and founder of Tree Stones web agency
• Passionate Webdeveloper and Laravel enthusiast
• Always interested for new technology and innovations
When I discovered Laravel
What is Laravel?
• PHP Framework for Artisans
• First release 2011
• Built on top of Symfony2 Components
• MVC based
• Like any framework, provides services and libraries to make interaction
with web requests and other services
Laravel Philosophy
• Love beatiful code
• Has expressive, elegant syntax
• Attempts to take the pain out of development (authentication, routing,
sessions, and caching)
• Providing powerful tools needed for large, robust applications
• Happy developers make the best code
Who is behind?
Taylor Otwell
Google Trend
The Installation
• Larave is based on Composer
• Installation via Laravel Installer
• Installation via Composer
Laravel folder structer
Controllers
Models
Views
The Basics
• Routing
• Controllers
• Templating (Blade)
• ORM (Eloquent)
Routing
• Handles the HTTP requests
• GET, POST, PUT, PATCH, DELETE
• Routes are defined in routes.php
• Routes can uses a closure
• Or you can use a Controller
Routing
Route List
• image
Controller
Blade
• Laravel default template engine
• Files need to use .blade.php extension
• Driven by inheritance and sections
• Extensible for adding new custom contol structures (directives)
Define a Blade Layout
Using a Blade Layout
Eloquent (ORM)
• Active Record
• Table – plural, snake_case class name
• Migrations
• Support relationship
• Soft deleting
• Timestamp
Migration & Seeder
• Migration • Seeder
Model
Artisan
• Laravel CLI, command «php artisan do:somtehing»
• Uses the Symfony Console component
• Manage table migrations, seed tables, create resourceful controllers
• Many more
Artisan
Service Container
• Manages class depencies
• Based on dependency injection method
• Dependencies are injected at run-time
• Allowing dependencies to be easily swapped
Service Container
Service Providers
• Act like component bootstrap
• Group related Service Container registrations in one place
• Can also run other functionalities like artisan command
Service Providers
Facades – What are they?
• Facade::doSomethingCool()
• Isn’t that a static method?
• Well, no
Facades – What are they?
• A «static» access to underlying service
• Lool like static resources, but actually uses services underneath
• Classes are resolved via Service Containers
Facades
• Laravel has a lot usefull usages of Facades like
• App::config()
• View::make()
• DB::table()
• Mail::send()
• Request::get()
• Session::get()
• Url::route()
• And much more…
Queue
• Provides a unified API across queue back-ends
• Interface to
• Amazon SQS
• IronMQ
• Redis queues
• Beanstalkd
• Sync – calls job inline
Middleware
• Allows processing or filtering of requests entering the system
• Example: Authentication, manipulation of content
Encryption
• Simplified encryption using mcrypt
• Available as Facade Crypt::(‘secret’)
Filesystem
• Abstraction layer to filesystem
• Local filesystem
• Amaron S3
• Rackspace Cloud Storage
• FTP/SFTP
• Dropbox
• Uses the league/flysystem library
Authentication
• Inlcudes libraries to do basic username/password authentication out
of the box
• Includes password recovery (Forgot password)
• Protecting routes using filters
Testing
• Testing Toolset
• Supports PHPUnit out of the box
• Easy to get started with Composer
• Allows you to simulate a web browser
• Support Mockery
Ecosystem
• Laravel
• Lumen
• Socialite
• Cashier
• Elixir
• Envoyer
• Spark (coming soon)
• Homestead
• Forge
Lumen
• Micor-framework for Micro-services
• Sacrifices configurability for speed
• Easy upgrade to a full Laravel application
Socialite
• Integrates Social authentication functionality
• Almost for all popular platforms available
• http://socialiteproviders.github.io
Cashier
• Billing without the hassle
• Subscription logic included
• Easy to setup
Envoy
• A simple deployment solution
• Handles SSH tasks
• Deploy on miltiple servers at onve
Elixir
• Gulp simplified
• Compilation, concatenation, minifaction, auto-prefixing,…
• Support for
• Source Maps
• CoffeScript
• Browserify
• Babel
• …
Spark (coming soon)
• Billing
• Team management
• Invitations
• Registration
• 2-factor auth
• …
Homestead
• Comes with everything you need
• Ubuntu
• PHP 5.6 & 7
• Nginx
• MySQL & Postgres
• Node
• Memcached
• …
Forge
• Automates the process to setup a server
• You don’t need to learn how to set up one
• Saves you the effort of settings everything up
• Globally, saves you ridiculous amounts of time
Envoyer (!= Envoy)
• Zero downtime deployments
• Seamless rollbacks
• Cronjobs monitoring with heartbeats
• Deployment health status
Community
• Slack http://larachat.co/
• Forum https://laracasts.com/discuss
• Forum http://laravel.io/forum
• Twitter https://twitter.com/laravelphp
• GitHub https://github.com/laravel/laravel
Conference
• LaraconUS July 27-29, Kentucky USA http://laracon.us/
• LaraconEU August 23-24, Amsterdam NL http://laracon.eu
Learning
• Laravel Documentation https://laravel.com/
• Laracasts https://laracasts.com/
CMS
• AsgardCMS https://asgardcms.com/
• OctoberCMS http://octobercms.com/
Thank you!
Questions?

Mais conteúdo relacionado

Mais procurados

Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
guest11106b
 

Mais procurados (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
 
Introduction to laravel framework
Introduction to laravel frameworkIntroduction to laravel framework
Introduction to laravel framework
 
Why Laravel?
Why Laravel?Why Laravel?
Why Laravel?
 
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
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
laravel.pptx
laravel.pptxlaravel.pptx
laravel.pptx
 
Spring boot
Spring bootSpring boot
Spring boot
 
Spring Boot and REST API
Spring Boot and REST APISpring Boot and REST API
Spring Boot and REST API
 
Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
 
Spring Boot Tutorial
Spring Boot TutorialSpring Boot Tutorial
Spring Boot Tutorial
 
Laravel 101
Laravel 101Laravel 101
Laravel 101
 
Laravel tutorial
Laravel tutorialLaravel tutorial
Laravel tutorial
 
Maven
MavenMaven
Maven
 
Spring boot
Spring bootSpring boot
Spring boot
 
Laravel Routing and Query Building
Laravel   Routing and Query BuildingLaravel   Routing and Query Building
Laravel Routing and Query Building
 
Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
 
Angular
AngularAngular
Angular
 
Hibernate Presentation
Hibernate  PresentationHibernate  Presentation
Hibernate Presentation
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
introduction to Vue.js 3
introduction to Vue.js 3 introduction to Vue.js 3
introduction to Vue.js 3
 

Semelhante a Laravel introduction

Microservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud FoundryMicroservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud Foundry
Emilio Garcia
 

Semelhante a Laravel introduction (20)

PHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne DalışPHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne Dalış
 
Laravel Meetup
Laravel MeetupLaravel Meetup
Laravel Meetup
 
Apereo OAE - Bootcamp
Apereo OAE - BootcampApereo OAE - Bootcamp
Apereo OAE - Bootcamp
 
Hands-on-Laravel.pptx
Hands-on-Laravel.pptxHands-on-Laravel.pptx
Hands-on-Laravel.pptx
 
Kuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails AppsKuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails Apps
 
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, LucidworksFusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
 
Introduction to Laravel
Introduction to LaravelIntroduction to Laravel
Introduction to Laravel
 
Owin from spec to application
Owin from spec to applicationOwin from spec to application
Owin from spec to application
 
Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)
 
OSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy HawkinsOSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy Hawkins
 
Microservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud FoundryMicroservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud Foundry
 
Integration in the age of DevOps
Integration in the age of DevOpsIntegration in the age of DevOps
Integration in the age of DevOps
 
20161103 Serverless Italy Meetup
20161103   Serverless Italy Meetup20161103   Serverless Italy Meetup
20161103 Serverless Italy Meetup
 
Scaling with swagger
Scaling with swaggerScaling with swagger
Scaling with swagger
 
Introduction to Flask Micro Framework
Introduction to Flask Micro FrameworkIntroduction to Flask Micro Framework
Introduction to Flask Micro Framework
 
Migration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMigration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET Core
 
Apereo OAE - Architectural overview
Apereo OAE - Architectural overviewApereo OAE - Architectural overview
Apereo OAE - Architectural overview
 
Cloud Native Camel Riding
Cloud Native Camel RidingCloud Native Camel Riding
Cloud Native Camel Riding
 
CrossWorlds: Unleash the Power of Domino for Connections Development
CrossWorlds: Unleash the Power of Domino for Connections Development CrossWorlds: Unleash the Power of Domino for Connections Development
CrossWorlds: Unleash the Power of Domino for Connections Development
 
Eugene PHP June 2015 - Let's Talk Laravel
Eugene PHP June 2015 - Let's Talk LaravelEugene PHP June 2015 - Let's Talk Laravel
Eugene PHP June 2015 - Let's Talk Laravel
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

Laravel introduction