create photos model
set configuration for folder of the uploaded files, folder for storing thumbnails, width and height of thumbnails
install library for image processing and run php composer.phar update
activate library and set an alias so that we can call the class easily
create a route for file upload. A CSRF checking will be done before the post action  starts
create a secure form for file upload
validating and processing the upload form
show the image with a user interface
listing images. links method of the images came with the paginate class that will create the pagination for us
delete the image from the database and server