In this tutorial we’ll code a simple photo gallery system with Laravel. We’ll also cover Laravel’s built-in file validation, file upload, and the hasMany database relation mechanism. We will use thevalidation class to validate the data and files. Also, we’ll cover the file class for processing files. The following topics are covered in this chapter:

  • Creating an Album model

  • Creating an Image model

  • Creating an album

  • Creating a photo upload form

  • Moving photos between albums