Laravel Application Development Blueprints


Laravel Application Development Blueprints
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn how to integrate third-party scripts and libraries into your application
  • With different techniques, learn how to adapt different methods to your needs
  • Expand your knowledge of Laravel 4 so you can tailor the sample solutions to your requirements

Book Details

Language : English
Paperback : 260 pages [ 235mm x 191mm ]
Release Date : November 2013
ISBN : 1783282118
ISBN 13 : 9781783282111
Author(s) : Arda Kılıçdağı, Halil İbrahim Yılmaz
Topics and Technologies : All Books, Web Development, Open Source

Table of Contents

Preface
Chapter 1: Building a URL Shortener Website
Chapter 2: Building a To-do List with Ajax
Chapter 3: Building an Image Sharing Website
Chapter 4: Building a Personal Blog
Chapter 5: Building a News Aggregation Website
Chapter 6: Creating a Photo Gallery System
Chapter 7: Creating a Newsletter System
Chapter 8: Building a Q&A Web Application
Chapter 9: Building a RESTful API – The Movies and Actors Databases
Chapter 10: Building an E-Commerce Website
Index
  • Chapter 1: Building a URL Shortener Website
    • Creating a database and migrating our URL shortener's table
    • Creating our form
    • Creating our Link model
    • Saving data to the database
      • Validating the users' input
      • Returning the messages to the view
    • Diving further into controller and processing the form
    • Getting individual URL from the database and redirecting
    • Summary
    • Chapter 2: Building a To-do List with Ajax
      • Creating and migrating our to-do list's database
      • Creating a todos model
      • Creating the template
      • Inserting data to the database with Ajax
      • Retrieving the list from the database
      • How to allow only Ajax requests
        • Allowing the request using route filters
        • Allowing the request using the controller side
      • Wrapping up
      • Summary
      • Chapter 3: Building an Image Sharing Website
        • Creating a database and migrating the images table
        • Creating a photo model
        • Setting custom configuration values
        • Installing a third-party library
        • Creating a secure form for file upload
        • Validating and processing the form
        • Showing the image with a user interface
        • Listing images
        • Deleting the image from the database and server
        • Summary
        • Chapter 4: Building a Personal Blog
          • Creating and migrating the posts database
          • Creating a posts model
          • Creating and migrating the authors database
          • Creating a members-only area
          • Saving a blog post
            • Assigning blog posts to users
          • Listing articles
          • Paginating the content
          • Summary
          • Chapter 5: Building a News Aggregation Website
            • Creating the database and migrating the feeds table
            • Creating a feeds model
            • Creating our form
            • Validating and processing the form
            • Extending the core classes
            • Reading and parsing an external feed
            • Summary
            • Chapter 6: Creating a Photo Gallery System
              • Creating a table and migrating albums
                • Creating an Album model
              • Creating the images database with the migrating class
              • Creating an Image model
              • Creating an album
                • Adding a template for creating albums
              • Creating a photo upload form
                • Validating the photo
                • Assigning a photo to an album
              • Moving photos between albums
                • Creating an update form
              • Summary
              • Chapter 7: Creating a Newsletter System
                • Creating a database and migrating the subscribers table
                • Creating a subscribers model
                • Creating our subscription form
                • Validating and processing the form
                • Creating a queue system for basic e-mail sending
                • Using the Email class to process e-mails inside the queue
                • Testing the system
                • Sending e-mails with the queue directly
                • Summary
                • Chapter 8: Building a Q&A Web Application
                  • Removing the public segment from Laravel 4
                  • Installing Sentry 2 and an authentication library and setting access rights
                  • Creating custom filters
                  • Creating our registration and login forms
                    • Validating and processing the form
                    • Processing the login and logout requests
                  • Creating our questions table and model
                  • Creating our tags table with a pivot table
                  • Creating and processing our question form
                    • Creating our questions form
                    • Processing our questions form
                  • Creating our questions list page
                    • Adding upvote and downvote functionality
                  • Creating our questions page
                  • Creating our answers table and resources
                    • Processing the answers
                    • Choosing the best answer
                  • Searching questions by the tags
                  • Summary
                  • Chapter 9: Building a RESTful API – The Movies and Actors Databases
                    • Creating and migrating the users database
                      • Adding sample users
                    • Creating and migrating the movies database
                    • Creating a movie model
                      • Adding sample movies
                    • Creating and migrating the actors database
                    • Creating an actor model
                    • Assigning actors to movies
                    • Understanding the authentication mechanism
                    • Querying the API
                      • Getting movie/actor information from the API
                      • Sending new movies/actors to the API's database
                      • Deleting movies/actors from the API
                    • Summary
                    • Chapter 10: Building an E-Commerce Website
                      • Building an authorization system
                      • Creating and migrating the members' database
                      • Creating and migrating the authors' database
                        • Adding authors to the database
                      • Creating and migrating the books database
                        • Adding books to the database
                      • Creating and migrating the carts database
                      • Creating and migrating the orders database
                      • Listing books
                        • Creating a template file to list books
                      • Taking orders
                      • Summary

                      Arda Kılıçdağı

                      Arda Kılıçdağı is a PHP, MySQL, and JavaScript programmer from Turkey. He has been developing applications in PHP since 2005. He has been administrating the Turkish national support website for the well-known open source content management script, PHP-Fusion. He's also one of the international developers and a member of the management team for PHP-Fusion, and he has an important role in the project's future. He has worked as a developer and has experience on projects such as Begendy (an exclusive private shopping website) and Futbolkurdu (a local soccer news website). He is experienced in using the Facebook API, Twitter API, and PayPal's Adaptive Payments API (which is used on crowdfunding websites such as KickStarter). He's also experienced in using JavaScript, and he's currently infusing his applications with JavaScript and jQuery, both on the frontend and backend. He has also developed applications using CodeIgniter and CakePHP for about four years, but these PHP frameworks didn't suit his needs completely. This is why he decided to use another framework for his projects, and that is when he met Laravel. Currently he is developing all his applications using Laravel. He's also obsessed with Unix/Linux and uses Linux on a daily basis. In addition, he is administrating the world's best-known microcomputer, Raspberry Pi's biggest Turkish community website.

                      Halil İbrahim Yılmaz

                      Halil İbrahim Yılmaz is a Python and PHP programmer and an e-commerce consultant from Turkey. He has worked as a developer and a software coordinator in over a dozen ventures, including Begendy, Modeum, Futbolkurdu, Arkeoidea, and Uzmanlazim. He is experienced in using many APIs such as Google, YouTube, Facebook, Twitter, Grooveshark, and PayPal. After meeting his business partner, he co-founded 16 Pixel, a Bursa-based creative consultancy that specializes in web development and e-commerce. He loves learning functional programming languages (Erlang and Haskell), new JavaScript technologies (Node.js), and NoSQL database systems (Riak and MongoDB). When he is not working on client projects, he is often trying to code a web application with those technologies. He lives in a house full of Linux boxes in Bursa, Turkey.
                      Sorry, we don't have any reviews for this title yet.

                      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

                      - 11 submitted: last submission 04 Feb 2014

                       

                      Errata type: Code | Page number: 93

                      The code should be:

                       <?php

                      class Images extends Eloquent {

                      Errata type: Code | Page number: 91

                      The code:

                      return $this->has_many(‘images’);

                       

                      Should be:

                      return $this->hasMany('Image');


                      Errata type: Code | Page number: 71

                      The first </aside> tag should be removed

                      Errata type: Code | Page number: 61, 62, 64, 65, 190, 192, 193, 195, 196

                      The term:

                       artisian

                      Should be: 

                      artisan

                      Errata type: Code | Page number: 74

                      The code:

                      $table->string('title,100)->default('');

                      Should be:

                      The code: $table->string('title',100)->default('');

                      Errata type: Code | Page number: 78

                      The code:

                      'title' => 'required'

                      Should be:

                      'title' => 'required',

                      Errata type: Code | Page number: 116

                      The code:

                      $table->string('email,100)->default('');

                      Should be:

                      $table->string('email',100)->default('');

                      Errata type: Code | Page number: 118

                      The extra <!doctype html> has to be removed


                      {{HTML::link(Session::get('link'),

                      instead of

                      {{Html::link(Session::get('link'),

                      Errata type: Technical | Page number: 40

                      php artisan migrate:make create_photos_table --table=photos --create

                      instead of

                      php artisan migrate:make create_photos_table --table=photos –create

                      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

                      Laravel Application Development Blueprints +    Drupal for Education and E-Learning - Second Edition =
                      50% Off
                      the second eBook
                      Price for both: €32.60

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

                      What you will learn from this book

                      • Learn about RESTful controllers and the functions of Laravel
                      • Use Laravel’s before/after route filters
                      • Learn how to use Laravel's ORM and non-ORM database methods
                      • Build ten genuine web solutions
                      • Process files with Laravel's built-in methods
                      • Integrate third-party libraries into your application
                      • Validate your form data and uploaded files
                      • Secure your web application from injections
                      • Learn about Laravel's Blade Template Engine and the basics of templating
                      • Use Laravel in different types of web projects

                      In Detail

                      Laravel is a clean and classy framework for PHP web development. It helps you to create wonderful applications using simple, expressive syntax. Development should be a creative and enjoyable experience, not something that is painful, and Laravel makes it enjoyable for the users. Laravel's directory structure is designed to be familiar to users of other popular PHP frameworks. Web applications of any shape or size can easily be created using this structure similar to the way that they would be created in other frameworks. With the recently released 4th Version, Laravel became even better in numerous ways. Within this book, we will help you learn about both the old and new features of Laravel while developing various applications.

                      Laravel Application Development Blueprints covers how to develop 10 different applications step-by-step using Laravel 4. You will also learn about both basic and advanced usage of Laravel’s built-in methods, which will come in handy for your project. Also, you will learn how to extend the current libraries with the built-in methods and include third-party libraries.

                      This book looks at the Laravel PHP framework and breaks down the ingrained prejudice that coding with PHP causes due to spaghetti code. It will take you through a number of clear, practical applications that will help you to take advantage of the Laravel PHP framework and PHP OOP programming whilst avoiding spaghetti code.

                      You'll also learn about creating secure web applications using different methods such as file uploading and processing, making RESTful AJAX requests, and form processing. If you want to take advantage of the Laravel PHP framework's validate, file processing, and RESTful controllers in various types of projects, then this is the book for you.
                      Everything you need to know to code fast and secure applications with the Laravel PHP framework will be discussed in this book.

                      Approach

                      Follow along as we work together to build 10 different applications using Laravel 4. Since each chapter is devoted to the design of a different application, there is no need to read the book in any particular order. Instead, you can pick and choose the blueprints that are of most interest to you and dive right in.

                      Who this book is for

                      This book is for intermediate to advanced level PHP programmers who want to master Laravel. It’s assumed that you will have some experience with PHP already. This book is also for those who are already using a different PHP framework and are looking for better solutions.

                      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