Laravel Application Development Blueprints

For intermediate to advanced PHP programmers this is the perfect volume for mastering Laverel. It starts with the basics then digs deep, covering the building of 10 different applications. Extend your capabilities with ease.

Laravel Application Development Blueprints

Blueprints
Arda Kılıçdağı, Halil İbrahim Yılmaz

For intermediate to advanced PHP programmers this is the perfect volume for mastering Laverel. It starts with the basics then digs deep, covering the building of 10 different applications. Extend your capabilities with ease.
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781783282111
Paperback260 pages

About This Book

  • 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

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.

Table of Contents

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
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
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
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 the images database with the migrating class
Creating an Image model
Creating an album
Creating a photo upload form
Moving photos between albums
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
Creating our questions table and model
Creating our tags table with a pivot table
Creating and processing our question form
Creating our questions list page
Creating our questions page
Creating our answers table and resources
Searching questions by the tags
Summary
Chapter 9: Building a RESTful API – The Movies and Actors Databases
Creating and migrating the users database
Creating and migrating the movies database
Creating a movie model
Creating and migrating the actors database
Creating an actor model
Assigning actors to movies
Understanding the authentication mechanism
Querying 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
Creating and migrating the books database
Creating and migrating the carts database
Creating and migrating the orders database
Listing books
Taking orders
Summary

What You Will Learn

  • 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.

Authors

Table of Contents

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
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
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
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 the images database with the migrating class
Creating an Image model
Creating an album
Creating a photo upload form
Moving photos between albums
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
Creating our questions table and model
Creating our tags table with a pivot table
Creating and processing our question form
Creating our questions list page
Creating our questions page
Creating our answers table and resources
Searching questions by the tags
Summary
Chapter 9: Building a RESTful API – The Movies and Actors Databases
Creating and migrating the users database
Creating and migrating the movies database
Creating a movie model
Creating and migrating the actors database
Creating an actor model
Assigning actors to movies
Understanding the authentication mechanism
Querying 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
Creating and migrating the books database
Creating and migrating the carts database
Creating and migrating the orders database
Listing books
Taking orders
Summary

Book Details

ISBN 139781783282111
Paperback260 pages
Read More