更新时间:2021-07-14 09:57:26
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
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
Working with Composer install command and avoiding Composer update
Making a provider
Using the Facade pattern
Using private packages
Chapter 3. Routing
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
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
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
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
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
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
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
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
Index