Laravel 5.x Cookbook

A recipe-based book to help you efficiently create amazing PHP-based applications with Laravel 5.x

Laravel 5.x Cookbook

Cookbook
Alfred Nutile

2 customer reviews
A recipe-based book to help you efficiently create amazing PHP-based applications with Laravel 5.x
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Free Sample

Book Details

ISBN 139781786462084
Paperback402 pages

Book Description

Laravel is a prominent member of a new generation of web frameworks. It is one of the most popular PHP frameworks and is also free and an open source. Laravel 5 is a substantial upgrade with a lot of new toys, at the same time retaining the features that made Laravel wildly successful. It comes with plenty of architectural as well as design-based changes.

The book is a blend of numerous recipes that will give you all the necessary tips you need to build an application. It starts with basic installation and configuration tasks and will get you up-and-running in no time. You will learn to create and customize your PHP app and tweak and re-design your existing apps for better performance. You will learn to implement practical recipes to utilize Laravel's modular structure, the latest method injection, route caching, and interfacing techniques to create responsive modern-day PHP apps that stand on their own against other apps. Efficient testing and deploying techniques will make you more confident with your Laravel skills as you move ahead with this book.

Towards the end of the book, you will understand a number of add-ons and new features essential to finalize your application to make it ready for subscriptions. You will be empowered to get your application out to the world.

Table of Contents

Chapter 1: Setting Up and Installing Laravel
Introduction
Setting up Homestead
Setting composer and PHP on your local machine for faster Workflows
Setting up your first application in Homestead
Using .env for your local build
Using sequel pro and connecting to local and remote databases
Setting up Gulp and Elixir
Chapter 2: Using Composer Packages
Introduction
Working with Composer install command and avoiding Composer update
Making a provider
Using the Facade pattern
Using private packages
Chapter 3: Routing
Introduction
Building an API / JSON based route for searching
Testing your route in PHPUnit
Building a view based route
Testing your view based route in PHPUnit
Creating named routes
Chapter 4: Building Views and Adding Style
Introduction
Organizing your Blade files
Installing a WrapBootStrap theme
Making your authentication pages
Implementing an error message template
Building your main search page
Adding a static page
Chapter 5: Working with Data
Introduction
Setting up users and running migrations
Altering a migration
Using factories for migrations and tests
Using a generator to scaffold your user wishlist area
Seeding so you can see how your app looks
Adding a file upload to user profile
Validating the file upload
Saving files to S3
Chapter 6: Adding Angular to Your App
Introduction
Adding Angular search to our search page
Handling Angular and Ajax requests
Paginating our Angular results
Testing an Angular page with Behat
Creating a relationship with favorites
Building a favorites Ajax widget in Angular
Validating incoming input
Using the CORS protection
Using Elixir and Gulp to set up Angular
Chapter 7: Authentication, Security, and Subscriptions
Introduction
Using policies and guard to protect user pages
Adding feature flags to hide features from users
Implementing Socialite to allow users to login with Facebook
Adding custom middleware to protect user admin area
Using Laravel to set up a subscription site
Creating an interface for the user to manage subscriptions
Creating an admin interface for subscriptions
Chapter 8: Testing and Debugging Your Application
Introduction
Generating tests
Using tests to think through your code TDT (Test Driven Thinking)
Getting your code onto GitHub
Using VCR for API testing
Using Travis to run tests with every push
Launching Gulp watch into your workflow
Using mockery to test your controllers
Troubleshooting your application
Chapter 9: Adding Advanced Features to Your App
Introduction
Building an Artisan command
Creating scheduler to notify users of new comics
Setting up e-mail notices
Adding clean URLS for the users profile page
Using pusher for live notifications
Adding a blog area to update users on new features
Chapter 10: Deploying Your App
Introduction
Setting up Forge, AWS, and CodeDeploy
Setting up Travis to auto deploy when all is passing
Working with your .env file
Testing your app on Production with Behat
Making a composer package out of our client

What You Will Learn

  • Optimize Your Gulp and Elixir Workflow
  • Use Travis to run tests with every push
  • Build and test your view-based route in PHPUnit
  • Explore workflows for migrations and seeding
  • Implement Angular in your Laravel applications
  • Set up a user authentication system
  • Integrate the new Billing library and Stripe in your Laravel application
  • Use the Artisan command-line tool
  • Test your App in Production with Behat

Authors

Table of Contents

Chapter 1: Setting Up and Installing Laravel
Introduction
Setting up Homestead
Setting composer and PHP on your local machine for faster Workflows
Setting up your first application in Homestead
Using .env for your local build
Using sequel pro and connecting to local and remote databases
Setting up Gulp and Elixir
Chapter 2: Using Composer Packages
Introduction
Working with Composer install command and avoiding Composer update
Making a provider
Using the Facade pattern
Using private packages
Chapter 3: Routing
Introduction
Building an API / JSON based route for searching
Testing your route in PHPUnit
Building a view based route
Testing your view based route in PHPUnit
Creating named routes
Chapter 4: Building Views and Adding Style
Introduction
Organizing your Blade files
Installing a WrapBootStrap theme
Making your authentication pages
Implementing an error message template
Building your main search page
Adding a static page
Chapter 5: Working with Data
Introduction
Setting up users and running migrations
Altering a migration
Using factories for migrations and tests
Using a generator to scaffold your user wishlist area
Seeding so you can see how your app looks
Adding a file upload to user profile
Validating the file upload
Saving files to S3
Chapter 6: Adding Angular to Your App
Introduction
Adding Angular search to our search page
Handling Angular and Ajax requests
Paginating our Angular results
Testing an Angular page with Behat
Creating a relationship with favorites
Building a favorites Ajax widget in Angular
Validating incoming input
Using the CORS protection
Using Elixir and Gulp to set up Angular
Chapter 7: Authentication, Security, and Subscriptions
Introduction
Using policies and guard to protect user pages
Adding feature flags to hide features from users
Implementing Socialite to allow users to login with Facebook
Adding custom middleware to protect user admin area
Using Laravel to set up a subscription site
Creating an interface for the user to manage subscriptions
Creating an admin interface for subscriptions
Chapter 8: Testing and Debugging Your Application
Introduction
Generating tests
Using tests to think through your code TDT (Test Driven Thinking)
Getting your code onto GitHub
Using VCR for API testing
Using Travis to run tests with every push
Launching Gulp watch into your workflow
Using mockery to test your controllers
Troubleshooting your application
Chapter 9: Adding Advanced Features to Your App
Introduction
Building an Artisan command
Creating scheduler to notify users of new comics
Setting up e-mail notices
Adding clean URLS for the users profile page
Using pusher for live notifications
Adding a blog area to update users on new features
Chapter 10: Deploying Your App
Introduction
Setting up Forge, AWS, and CodeDeploy
Setting up Travis to auto deploy when all is passing
Working with your .env file
Testing your app on Production with Behat
Making a composer package out of our client

Book Details

ISBN 139781786462084
Paperback402 pages
Read More
From 2 reviews

Read More Reviews