Learning Laravel 4 Application Development


Learning Laravel 4 Application Development
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Build real-world web applications using the Laravel 4 framework
  • Learn how to configure, optimize and deploy Laravel 4 applications
  • Packed with illustrations along with lots of tips and tricks to help you learn more about one of the most exciting PHP frameworks around

Book Details

Language : English
Paperback : 256 pages [ 235mm x 191mm ]
Release Date : December 2013
ISBN : 1783280573
ISBN 13 : 9781783280575
Author(s) : Hardik Dangar
Topics and Technologies : All Books, Web Development, Open Source


Table of Contents

Preface
Chapter 1: Welcome to the World of Laravel
Chapter 2: Let's Begin the Journey
Chapter 3: Creating a Simple CRUD Application in Hours
Chapter 4: Building a Real-life Application with Laravel 4 – The Foldagram
Chapter 5: Creating a Cart Package for Our Application
Chapter 6: User Management and Payment Gateway Integration
Chapter 7: The Admin Section
Chapter 8: Building a RESTful API with Laravel – Store Locator
Chapter 9: Optimizing and Securing Our Applications
Chapter 10: Deploying Laravel Applications
Chapter 11: Creating a Workflow and Useful Laravel Packages and Tools
Index
  • Chapter 2: Let's Begin the Journey
    • Installing Laravel 4 on Windows
      • Installing Composer
      • Installing Laravel 4
    • Installing Laravel 4 on Linux/Ubuntu
    • Installing Laravel 4 on Mac
      • Exploring the Laravel 4 structure
      • Configuring Laravel
      • Configuring the Laravel environment
        • Configuring the database
        • Configuring the application
      • Artisan – magic of Laravel 4
        • Generating a boilerplate controller
        • Managing database with migrations
        • Filling the database with basic data for testing via database seeds
        • Running unit tests
        • Maintenance mode
    • Summary
  • Chapter 3: Creating a Simple CRUD Application in Hours
    • Getting familiar with Laravel 4
      • Controllers versus routes
    • Creating a simple CRUD application with Laravel 4
      • Listing the users – read users from database
      • Creating new users
      • Editing user information
      • Deleting user information
      • Adding pagination to our list users
  • Summary
  • Chapter 5: Creating a Cart Package for Our Application
    • Introducing IoC container
    • Dependency Injection
      • Service providers
      • Packages in Laravel 4
      • Package structure
      • Facades
      • Cart functions
        • The Cart class
        • Adding Foldagram to the cart
        • Updating the cart
        • Deleting from cart
        • Viewing the cart contents
        • Viewing the cart total
        • Deleting all items from the cart
      • Integrating the Cart package in Foldagram order process
        • Adding the Foldagram information to the Foldagram table
      • Image resizing in Laravel
        • Adding the recipient information to the Recipients table
        • Adding the Foldagram order details to our Cart package
        • Creating the preview page to preview Foldagram
        • Deleting the recipient's information
        • Editing the Foldagram information
        • Deleting Foldagram from the cart
    • Summary
  • Checkout & payment gateway integration
    • Building the checkout page for credit cards
    • Integrating Stripe payment gateway
    • Creating the checkout order process
    • Building the credits section
    • Building the view orders section
  • Summary
  • Chapter 7: The Admin Section
    • Building the foundation for the administration section
    • Creating a login section for the administrator
    • Managing orders
      • Building the view recipients section
      • Building the order details section
      • Updating order status
      • Deleting orders
    • Exporting orders
    • Managing Foldagram pricing
    • Adding credit for the user
    • Managing users
      • Adding users
      • Editing users
      • Deleting users
      • Blocking users
    • Summary
  • Chapter 8: Building a RESTful API with Laravel – Store Locator
    • REST basics
    • A store locator's single page web application
      • Creating a REST API in Laravel 4 using Resource Controllers
      • Creating a RESTful backend
      • Creating an API to view all the stores
      • Building an API method for viewing an individual store
      • Creating an API method for searching the stores
      • Adding a store method to our API
      • Updating the store method of our API
      • Creating an API method for deleting a store client
      • Creating a frontend via a RESTful API
    • Summary
  • Chapter 10: Deploying Laravel Applications
    • Creating production configuration
    • Creating a directory structure based on your web host
    • Uploading your Laravel application directory files
      • Deploying via SSH
      • Uploading files via OpenSSH (Linux, Mac)
      • Uploading files via Putty (Windows)
    • Creating a database in the production site and uploading your local database on the production site
    • Giving proper permissions to your storage files
    • Setting up .htaccess based on your server
      • Deploying via FTP
      • Deploying via SSH from the Git repository
      • Deploying via FTP from the Git repository
    • Summary

Hardik Dangar

Hardik Dangar is co-founder of Sphere Rays Technolabs Pvt. Ltd. His primary focus has been on web-based ERP systems for the last six years. Lately, he has been working with a few of the key startups to shape their core ideas into architectural development and implementation of projects from inception. He can be found on Google+ developer communities and IRC channels of various frameworks helping people and building communities.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 12 submitted: last submission 08 May 2014

Errata Type: Code | Page number: 29

$ php artisan controller make:user

should be replaced with

$ php artisan controller:make user

Errata Type: Code | Page number: 39


$ php artisan Usercontroller:make users

should be replaced with

$ php artisan controller:make UserController

Errata Type: code | Page number: 35

Route::get('contact', 'Pages@contact');

should be

Route::get('contact', 'PagesController@contact');

Errata Type: Code | Page number : 90

$ php artisan workbench Acme/Cart –resources

shoud be:

$ php artisan workbench Acme/Cart --resources 

Errata Type: Code | Page Number: 72

Route::get('/about', function()
{
return View::make('about')->with('title','About
Foldagram')->with('page','about');
});

should be replaced with

Route::get('/about', array('as' => 'about', function()
{
 return View::make('about')->with('title','About Foldagram')->with('class','about');
}));

Errata type: Code| Page Number: 42

@extends('layout/user')

should be inserted before

@section('main')

Errata Type: Code | Page Number: 44

Laravel will load the users.blade.php layout

should be replaced with


Laravel will load the user.blade.php layout

Errata Type: Code | Page Number: 48

protected $guarded = array('id');

should be replaced with


protected $guarded = array('id','password_confirmation');

Errata Type: Code | Page Number: 50

@extends('users.scaffold')

should be replaced with:

@extends('layouts.user')

Errata Type: Code | Page number: 74

@endsection

should be replaced by

@stop

Errata Type: Code | Page number: 60

DB::table('users')->insert(
array('username'=>'James','email' => 'james@gmail.
com','password'=>$hashed),
array('username'=>'Steve','email' => 'stever@yahoo.
com','password'=>$hashed)

should be replaced with

DB::table('users')->insert(array(
array('username'=>'James','email' => 'james@gmail.
com','password'=>$hashed),
array('username'=>'Steve','email' => 'stever@yahoo.
com','password'=>$hashed)

Errata Type: Code | Page number: 51

return Redirect::route('users.show', $id);

should be replaced with

 return Redirect::route('users.index');

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Learning Laravel 4 Application Development +    Haskell Data Analysis Cookbook =
50% Off
the second eBook
Price for both: £27.35

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Familiarize yourself with MVC concepts
  • Install and configure Laravel 4
  • Build the frontend and backend of your application
  • Optimize and configure your web applications
  • Build RESTful applications with Laravel 4
  • Create a Cart package in Laravel 4
  • Integrate your cart with a payment gateway
  • Deploy your application

In Detail

Laravel 4 is a clean and classy framework for PHP web development. It attempts to ease the development of web applications by simplifying the common tasks required in the majority of web projects, such as authentication, routing, sessions, and caching.

"Learning Laravel 4 Application Development" uses a step-by-step approach to teach you how to build real-world web applications. You will learn how to create a web application from scratch as well as how to create and use packages to build reusable components to be used in your projects.

This book begins by familiarizing you with MVC concepts as well as the Laravel 4 framework. From there, it moves on to the creation of the frontend and backend of your web application. As you progress through the book, you will learn how you can authenticate users as well as develop RESTful APIs. You will also learn how to configure, optimize, and secure your applications. Lastly, it teaches you how to deploy your applications using different approaches like Git, FTP, and SSH.

Laravel 4 Application Development will teach you everything you need to know to create accessible real-world web applications quickly and efficiently.

Approach

This book is written in a simple and easy-to-understand manner, with each chapter contributing as a standalone project that will give you as a reader something to reflect on as you’re learning.

Who this book is for

This book is aimed at amateur PHP developers with a desire to get a firm understanding of the Lavarel 4 framework. Basic knowledge of PHP will be helpful, however in-depth knowledge is not a must.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software