Book description
A recipe-based book to help you efficiently create amazing PHP-based applications with Laravel 5.x
About This Book
- Leverage the amazing new features of Laravel 5.x to create cutting-edge responsive PHP applications.
- Create apps with interoperability features and extend these features to your existing applications as well.
- Over 60 recipes that combine tried and tested Laravel tips for getting your app working.
Who This Book Is For
The ideal target audience for this book is PHP developers who have some basic PHP programming knowledge. No previous experience with Laravel is required for this book.
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
In Detail
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.
Style and approach
This book will have a practical recipe-based approach with dedicated recipes on your daily Laravel tasks (as well as on more advanced issues) that will help you become a pro with Laravel 5.x
Table of contents
-
Laravel 5.x Cookbook
- Table of Contents
- Laravel 5.x Cookbook
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Setting Up and Installing Laravel
- 2. Using Composer Packages
- 3. Routing
- 4. Building Views and Adding Style
- 5. Working with Data
-
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
-
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
-
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
- 9. Adding Advanced Features to Your App
- 10. Deploying Your App
- Index
Product information
- Title: Laravel 5.x Cookbook
- Author(s):
- Release date: September 2016
- Publisher(s): Packt Publishing
- ISBN: 9781786462084
You might also like
book
Full-Stack Vue.js 2 and Laravel 5
Learn to build professional full-stack web apps with Vue.js and Laravel About This Book End-to-end guide …
book
Beginning Laravel: A beginner's guide to application development with Laravel 5.3
Learn about dependency injection, interfaces, service providers, SOLID design, and more with practical and real-world code …
book
Laravel 5 Essentials
Explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available In …
video
PHP Web Services
Learn how to build web services with PHP and exchange data across applications. In this video …