Laravel 5.x Cookbook
eBook - ePub

Laravel 5.x Cookbook

  1. 402 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Laravel 5.x Cookbook

About this book

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

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Laravel 5.x Cookbook


Table of Contents

Laravel 5.x Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Setting Up and Installing Laravel
Introduction
Setting up Homestead
Getting ready
How to do it...
How it works...
There's more...
See also
Setting composer and PHP on your local machine for faster Workflows
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up your first application in Homestead
Getting ready
How to do it...
How it works...
See also
Using .env for your local build
Getting ready
How to do it...
How it works...
See also
Using sequel pro and connecting to local and remote databases
How to do it...
How it works...
See also
Setting up Gulp and Elixir
How to do it...
How it works...
See also
2. Using Composer Packages
Introduction
Working with Composer install command and avoiding Composer update
Getting ready
How to do it...
How it works...
There's more...
See also
Making a provider
Getting ready
How to do it...
How it works...
See also
Using the Facade pattern
Getting ready
How to do it...
How it works...
See also
Using private packages
Getting ready
How to do it...
How it works...
See also
3. Routing
Introduction
Building an API / JSON based route for searching
Getting ready
How to do it...
How it works…
See also
Testing your route in PHPUnit
Getting ready
How to do it…
How it works…
See also
Building a view based route
Getting ready
How to do it…
How it works…
Testing your view based route in PHPUnit
Getting ready
How to do it…
How it works…
See also
Creating named routes
Getting ready
How to do it…
How it works…
See also
4. Building Views and Adding Style
Introduction
Organizing your Blade files
Getting ready
How to do it...
How it works...
See also
Installing a WrapBootStrap theme
Getting Started
How to do it…
How it works…
See also
Making your authentication pages
How to do it…
How it works…
Implementing an error message template
Getting started…
How to do it…
How it works…
Building your main search page
Getting started…
How to do it…
How it works…
See also
Adding a static page
Getting started…
How to do it…
How it works…
5. Working with Data
Introduction
Setting up users and running migrations
Getting ready
How to do it...
How it works...
See also
Altering a migration
Getting ready
How to do it....
How it works…
See also
Using factories for migrations and tests
Getting ready
How to do it…
How it works…
See also
Using a generator to scaffold your user wishlist area
Getting ready
How to do it…
How it works…
See also
Seeding so you can see how your app looks
Getting ready
How to do it…
How it works…
See also
Adding a file upload to user profile
Getting ready
How to do it…...

Table of contents

  1. Laravel 5.x Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Laravel 5.x Cookbook by Alfred Nutile in PDF and/or ePUB format, as well as other popular books in Computer Science & Open Source Programming. We have over one million books available in our catalogue for you to explore.