SlideShare a Scribd company logo
(new Laravel())
->phpForArtisans();
echo $page++; //
1. (new Person())
2. ->name(“Francisco Carvalho”)
3. ->birth(new Porto())
4. ->state(“Braga”)
5. ->work(“Beevo”) // we’re hiring
6. ->do(new Fullstack(“PHP”)); // phalcon
7. //->contact(“fiskolini@gmail.com")
8.
(new Laravel())->whoAmI();
2
echo $page++; //
1. Framework PHP open-source, desenvolvida
por $TaylorOtwell (claps!).
2. Lançada inicialmente em 2011
3. $curVersion = 5.6 // $this->setMonth(2)
4. Arquitetura MVC
5. SQL databases // whoops!
6. Comunidade ENORME
7. - Laracasts (huuggeee)
8. - laravel.io
9. - larachat (Slack channel)
10.Excelente documentação
11.
(new Laravel())->laraWhat();
3
Laravel - PHP For artisans
echo $page++; //
1. $templateEngine = new Blade();
2. (new CliTool())->set(‘artisan’);
3. Schema::create(‘db_name’); // DBmigrations
4. $orm = new Eloquent();
5. (new UnitTest())->assertTrue();
6. Route::get(’/phporto’, ’meetup@show’);
7. Queueable::handle(); // Job Scheduling
8. Storage::put(’images’, $image);
9. mix.js(’js/app.js’, ’public/js’);
10.// and finally, the most important thing
11.// . . .
12.$features++;
(new Laravel())->whatThisDoes();
5
Laravel - PHP For artisans
Laravel - PHP For artisans
Laravel - PHP For artisans
echo $page++; //
(new Laravel())->model();
9
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->string("title");
$table->text("text");
$table->integer("author_id")->unsigned();
$table->foreign("author_id")->references("id")->on("users");
$table->timestamps();
});
php artisan make:migration createPostsTable
echo $page++; //
(new Laravel())->controller();
10
Route::get('/home/posts', ‘PostsController@index')
->name(‘posts');
php artisan make:controller PostsController
echo $page++; //
(new Laravel())->controller()->create();
11
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
index()
// create()
// store(Request $request)
// show($id)
// edit($id)
// update(Request $request, $id)
// destroy($id)
Laravel - PHP For artisans
echo $page++; //
(new Laravel())->controller()->create();
13
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
index()
create()
// store(Request $request)
// show($id)
// edit($id)
// update(Request $request, $id)
// destroy($id)
Laravel - PHP For artisans
echo $page++; //
(new Laravel())->controller()->create();
15
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
index()
create()
store(Request $request) // POST method
// show($id)
// edit($id)
// update(Request $request, $id)
// destroy($id)
echo $page++; //
(new Laravel())->controller()->create();
16
index()
create()
store(Request $request) // POST method
show($id)
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
// edit($id)
// update(Request $request, $id)
// destroy($id)
Laravel - PHP For artisans
echo $page++; //
(new Laravel())->controller()->create();
18
index()
create()
store(Request $request) // POST method
show($id)
edit($id)
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
// update(Request $request, $id)
// destroy($id)
Laravel - PHP For artisans
echo $page++; //
(new Laravel())->controller()->create();
20
index()
create()
store(Request $request) // POST method
show($id)
edit($id)
update(Request $request, $id) // POST method
// destroy($id) // POST method
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
echo $page++; //
(new Laravel())->controller()->create();
21
index()
create()
store(Request $request) // action=“POST”
show($id)
edit($id)
update(Request $request, $id) // action=“PUT”
destroy($id) // action=“PATCh”
/**
* Resource controller methods
* This methods are not required,
* just a conventional way to deal
* with controller actions.
*/
echo $page++; //
1. Open-source
2. Libraries + Modular
3. Arquitetura MVC
4. Unit-Testing
5. Comunidade++
6. Simplicidade
7. Features++
8. - Queue
9. - Broadcast
10. - Middleware
11.…
(new Laravel())->isThisGood();
22
die(“thank you”);
echo $page++; //
(new Laravel())->doQuestions();
24
1. foreach($questions as $question){
2. echo $question->get() . “n”;
3. }
4.

More Related Content

PDF
Build your own RESTful API with Laravel
PDF
Melhorando sua API com DSLs
PDF
What is the difference between a good and a bad repository? (Forum PHP 2018)
PPTX
So cal0365productivitygroup feb2019
PDF
Laravel the right way
KEY
My Development Story
PDF
SfCon: Test Driven Development
PDF
ZCPE - PHP Conference 2015
Build your own RESTful API with Laravel
Melhorando sua API com DSLs
What is the difference between a good and a bad repository? (Forum PHP 2018)
So cal0365productivitygroup feb2019
Laravel the right way
My Development Story
SfCon: Test Driven Development
ZCPE - PHP Conference 2015

What's hot (20)

PDF
TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...
PDF
20 modules i haven't yet talked about
PDF
Advanced modulinos
PDF
Advanced modulinos trial
PDF
Laravel, the right way - PHPConference 2016
ODP
PHP pod mikroskopom
PDF
Meet up symfony 16 juin 2017 - Les PSR
PDF
Xlab #1: Advantages of functional programming in Java 8
PDF
Functional php
PDF
PHPCon 2016: PHP7 by Witek Adamus / XSolve
PDF
Les exceptions, oui, mais pas n'importe comment
PDF
Git avançado
PDF
Bag of tricks
PDF
Perl6 operators and metaoperators
PDF
Writing code you won’t hate tomorrow - PHPCE18
KEY
SPL, not a bridge too far
PDF
PHP7 - Scalar Type Hints & Return Types
PDF
Twib in Yokoahma.pm 2010/3/5
PDF
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...
20 modules i haven't yet talked about
Advanced modulinos
Advanced modulinos trial
Laravel, the right way - PHPConference 2016
PHP pod mikroskopom
Meet up symfony 16 juin 2017 - Les PSR
Xlab #1: Advantages of functional programming in Java 8
Functional php
PHPCon 2016: PHP7 by Witek Adamus / XSolve
Les exceptions, oui, mais pas n'importe comment
Git avançado
Bag of tricks
Perl6 operators and metaoperators
Writing code you won’t hate tomorrow - PHPCE18
SPL, not a bridge too far
PHP7 - Scalar Type Hints & Return Types
Twib in Yokoahma.pm 2010/3/5
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Ad

Similar to Laravel - PHP For artisans (20)

PDF
Laravel intake 37 all days
PDF
RESTful API development in Laravel 4 - Christopher Pecoraro
PDF
Laravel Level 1 (The Basic)
PDF
Laravel 4 presentation
PPTX
Laravel
PPTX
What-is-Laravel and introduciton to Laravel
PPTX
Laravel Crud Tutorial Basic Step by Stepy S
PPT
Laravel & Composer presentation - extended
PDF
以 Laravel 經驗開發 Hyperf 應用
PPTX
Introduction to Laravel Framework (5.2)
PPTX
What-is-Laravel-23-August-2017.pptx
PDF
Laravel Introduction
PDF
laravel-interview-questions.pdf
PDF
Getting to know Laravel 5
PDF
Laravel Framework Notes Web Techonologies
PDF
Memphis php 01 22-13 - laravel basics
PPTX
Getting started with laravel
PDF
Why Laravel?
PDF
SDPHP Lightning Talk - Let's Talk Laravel
PDF
What's New In Laravel 5
Laravel intake 37 all days
RESTful API development in Laravel 4 - Christopher Pecoraro
Laravel Level 1 (The Basic)
Laravel 4 presentation
Laravel
What-is-Laravel and introduciton to Laravel
Laravel Crud Tutorial Basic Step by Stepy S
Laravel & Composer presentation - extended
以 Laravel 經驗開發 Hyperf 應用
Introduction to Laravel Framework (5.2)
What-is-Laravel-23-August-2017.pptx
Laravel Introduction
laravel-interview-questions.pdf
Getting to know Laravel 5
Laravel Framework Notes Web Techonologies
Memphis php 01 22-13 - laravel basics
Getting started with laravel
Why Laravel?
SDPHP Lightning Talk - Let's Talk Laravel
What's New In Laravel 5
Ad

Recently uploaded (20)

PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
System and Network Administraation Chapter 3
PPTX
ai tools demonstartion for schools and inter college
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Transform Your Business with a Software ERP System
PDF
Understanding Forklifts - TECH EHS Solution
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
top salesforce developer skills in 2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
System and Network Administraation Chapter 3
ai tools demonstartion for schools and inter college
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How Creative Agencies Leverage Project Management Software.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Wondershare Filmora 15 Crack With Activation Key [2025
Transform Your Business with a Software ERP System
Understanding Forklifts - TECH EHS Solution
2025 Textile ERP Trends: SAP, Odoo & Oracle
Operating system designcfffgfgggggggvggggggggg
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Design an Analysis of Algorithms II-SECS-1021-03
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
CHAPTER 2 - PM Management and IT Context
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Reimagine Home Health with the Power of Agentic AI​
top salesforce developer skills in 2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf

Laravel - PHP For artisans

  • 2. echo $page++; // 1. (new Person()) 2. ->name(“Francisco Carvalho”) 3. ->birth(new Porto()) 4. ->state(“Braga”) 5. ->work(“Beevo”) // we’re hiring 6. ->do(new Fullstack(“PHP”)); // phalcon 7. //->contact(“fiskolini@gmail.com") 8. (new Laravel())->whoAmI(); 2
  • 3. echo $page++; // 1. Framework PHP open-source, desenvolvida por $TaylorOtwell (claps!). 2. Lançada inicialmente em 2011 3. $curVersion = 5.6 // $this->setMonth(2) 4. Arquitetura MVC 5. SQL databases // whoops! 6. Comunidade ENORME 7. - Laracasts (huuggeee) 8. - laravel.io 9. - larachat (Slack channel) 10.Excelente documentação 11. (new Laravel())->laraWhat(); 3
  • 5. echo $page++; // 1. $templateEngine = new Blade(); 2. (new CliTool())->set(‘artisan’); 3. Schema::create(‘db_name’); // DBmigrations 4. $orm = new Eloquent(); 5. (new UnitTest())->assertTrue(); 6. Route::get(’/phporto’, ’meetup@show’); 7. Queueable::handle(); // Job Scheduling 8. Storage::put(’images’, $image); 9. mix.js(’js/app.js’, ’public/js’); 10.// and finally, the most important thing 11.// . . . 12.$features++; (new Laravel())->whatThisDoes(); 5
  • 9. echo $page++; // (new Laravel())->model(); 9 Schema::create('posts', function (Blueprint $table) { $table->increments('id'); $table->string("title"); $table->text("text"); $table->integer("author_id")->unsigned(); $table->foreign("author_id")->references("id")->on("users"); $table->timestamps(); }); php artisan make:migration createPostsTable
  • 10. echo $page++; // (new Laravel())->controller(); 10 Route::get('/home/posts', ‘PostsController@index') ->name(‘posts'); php artisan make:controller PostsController
  • 11. echo $page++; // (new Laravel())->controller()->create(); 11 /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */ index() // create() // store(Request $request) // show($id) // edit($id) // update(Request $request, $id) // destroy($id)
  • 13. echo $page++; // (new Laravel())->controller()->create(); 13 /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */ index() create() // store(Request $request) // show($id) // edit($id) // update(Request $request, $id) // destroy($id)
  • 15. echo $page++; // (new Laravel())->controller()->create(); 15 /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */ index() create() store(Request $request) // POST method // show($id) // edit($id) // update(Request $request, $id) // destroy($id)
  • 16. echo $page++; // (new Laravel())->controller()->create(); 16 index() create() store(Request $request) // POST method show($id) /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */ // edit($id) // update(Request $request, $id) // destroy($id)
  • 18. echo $page++; // (new Laravel())->controller()->create(); 18 index() create() store(Request $request) // POST method show($id) edit($id) /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */ // update(Request $request, $id) // destroy($id)
  • 20. echo $page++; // (new Laravel())->controller()->create(); 20 index() create() store(Request $request) // POST method show($id) edit($id) update(Request $request, $id) // POST method // destroy($id) // POST method /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */
  • 21. echo $page++; // (new Laravel())->controller()->create(); 21 index() create() store(Request $request) // action=“POST” show($id) edit($id) update(Request $request, $id) // action=“PUT” destroy($id) // action=“PATCh” /** * Resource controller methods * This methods are not required, * just a conventional way to deal * with controller actions. */
  • 22. echo $page++; // 1. Open-source 2. Libraries + Modular 3. Arquitetura MVC 4. Unit-Testing 5. Comunidade++ 6. Simplicidade 7. Features++ 8. - Queue 9. - Broadcast 10. - Middleware 11.… (new Laravel())->isThisGood(); 22
  • 24. echo $page++; // (new Laravel())->doQuestions(); 24 1. foreach($questions as $question){ 2. echo $question->get() . “n”; 3. } 4.