Chapter 5. Working with Data

In this chapter, we will cover the following topics:

  • 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 file upload
  • Saving files to S3

Introduction

In this chapter, I will take a look at common workflows, gotchas, and other tips and tricks around Laravel and data or state, which in this case will include files.

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.