Adding a file upload to user profile
Now the user has a profile. We are going to add file upload. I will walk through the process, like previously, using Behat so we can see the process from the "outside in", for example, how the product owner sees the feature and builds from the "inside out", for example, where the classes take a message and process it to make a response.
Getting ready
The previous recipe will help set up the profile area but honestly any form you are working on will do.
How to do it…
- Let us first write our Behat user story as a starter point. This will help take on that task in a more "test-first" process. So our test file
features/profile/profile_image.feature
looks like this: - Then our
behat.yml
is made aware of this new "suite" ...
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.