I N T R O D U C T I O N T O L A R A V E L
@vinlim
vin@greenroom.com.my
THE PHP FRAMEWORK FOR WEB ARTISANS
NOTICE
THIS IS NOT A FRAMEWORK WAR
The Usual About Me
• Self-taught HTML in 1997 (1st Book bought on MV Doulos)
• Founded WebEvolution Resources in 2001
• De...
Back to Laravel
• Before there were light, there was CodeIgniter.
• CodeIgniter is probably the most popular framework bac...
Let’s Get Dirty
composer create-project laravel/laravel webcamppg
Quick Start
Creating project ‘webcamppg’ with composer
Directory Structure
• public/ is everything accessible externally
• app/ is your playground
• app/controllers is the home ...
Blade Templating
<?php
$name = “Vin Lim”;
?>
@if (isset($name))
Welcome {{$name}},
@else
Welcome Stranger
@endif
Echo Data...
RESTful Routing
Route::get('/hello’ , function() ,
return 'Hello World';
});
Route::get(’/name/,name-’ , ’HomeController@s...
Requests & Input
public function showWelcome() {
if (Input::has('name')) {
data*‘name’+ = Input::get(‘name’);
return View:...
Other Resources
Laravel: Code Bright
Web application development for the
Laravel framework version 4
for beginners.
Larave...
Oh and of course…
Stack Overflow
www.stackoverflow.com
@vinlim
vin@greenroom.com.my
THANK YOU
A special thank to Laravel core team and it’s awesome commnity
for making our life,...
Upcoming SlideShare
Loading in...5
×

Introduction to Laravel

801

Published on

Introduction to Laravel. The PHP Framework for Web Artisans.

Laravel is a free, open source PHP web application framework, designed for the development of MVC web applications. Laravel is released under the MIT license, with its source code hosted on GitHub.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
801
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
24
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Introduction to Laravel

  1. 1. I N T R O D U C T I O N T O L A R A V E L @vinlim vin@greenroom.com.my THE PHP FRAMEWORK FOR WEB ARTISANS
  2. 2. NOTICE THIS IS NOT A FRAMEWORK WAR
  3. 3. The Usual About Me • Self-taught HTML in 1997 (1st Book bought on MV Doulos) • Founded WebEvolution Resources in 2001 • Decade in Sales (Banking & Pharmaceutical) • Founded yourfoodreview.com in 2010 • Founded Green Room in 2013 • Really into PHP after meeting other half
  4. 4. Back to Laravel • Before there were light, there was CodeIgniter. • CodeIgniter is probably the most popular framework back then, known for it’s ultra lightweight and simple learning curve. • In 2011, Taylor Otwell the creator of Laravel decided that some essential functionalities are missing in CodeIgniter, like out-of-the- box authentication, closure routing & etc. • Laravel 4 was released on May 2013, rewritten from ground up. It is now one of the, if not, the most powerful PHP framework. With advance functionality such as DB seeding, built-in mailer, blade templating and an even more powerful Eloquent ORM. Love history? http://maxoffsky.com/code-blog/history-of-laravel-php-framework-eloquence-emerging
  5. 5. Let’s Get Dirty composer create-project laravel/laravel webcamppg Quick Start Creating project ‘webcamppg’ with composer
  6. 6. Directory Structure • public/ is everything accessible externally • app/ is your playground • app/controllers is the home of your controller • app/models is the home of your models • app/views is the home of your views
  7. 7. Blade Templating <?php $name = “Vin Lim”; ?> @if (isset($name)) Welcome {{$name}}, @else Welcome Stranger @endif Echo Data Echo PHP variable with If .. Else conditioning
  8. 8. RESTful Routing Route::get('/hello’ , function() , return 'Hello World'; }); Route::get(’/name/,name-’ , ’HomeController@showWelcome'); Route::post(’/’ , ’HomeController@showWelcome'); Echo Data Echo PHP variable with If .. Else conditioning
  9. 9. Requests & Input public function showWelcome() { if (Input::has('name')) { data*‘name’+ = Input::get(‘name’); return View::make('hello')->with(‘data’,$data); } else { return View::make('hello’); } } Basic Input Check & retrieve an input value
  10. 10. Other Resources Laravel: Code Bright Web application development for the Laravel framework version 4 for beginners. Laravel Documentation Official Documentation – laravel.com/docs/
  11. 11. Oh and of course… Stack Overflow www.stackoverflow.com
  12. 12. @vinlim vin@greenroom.com.my THANK YOU A special thank to Laravel core team and it’s awesome commnity for making our life, so much better. github.com/laravel/laravel
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×