Create an Image Sharing Website with laravel its easy

In This tutorial;, we will create a Image sharing website. First, we will create an images table. Then we’ll cover methods to resize and share images.

note – please comment below if you were facing any problem or if you are new to laravel Β checkout this article

The following topics are covered in this tutorial:

  • Creating a database and migrating the images table
  • Creating a photo model
  • Setting custom configuration values
  • Installing a third-party library
  • Creating a secure form for file upload
  • Validating and processing the form
  • Showing the image with a user interface
  • Listing images
  • Deleting the image from the database and server

so lets get started…..

prevChapter 1 of 10

Recommended :  Route middleware unravelled in laravel 5.1

About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

  • xxrobot

    1. The newsletter popup modal is infuriating.

    2. you forgot step #1 making a new project

  • xxrobot

    3. migrate:make is now make:migrate

    • Deven Rathore

      thanks for pointing it out

  • Amit Kadam

    Hi Deven.. You may know Ravindra Barthwal Webking…… he introduced me with ur site Hyguyz.com and I have registered on that……!!!
    But .. is it stoped now??

    (And best of Luck…)

    • Deven Rathore

      yes ! he is my good friend ! actually i am developing hyguyz with new concept ! with mobile site first ! so currently hyguyz is not in production

      • Amit Kadam

        when will it get copmleted…and how is ur marketing plan…may b i can help u in sm way.. if possible..!

        • Deven Rathore

          sure

  • Mitrandir

    How can this tutorial be applicable to Laravel 5.1 version, if you were using old directory tree structure with ‘models’ and ‘apps’ folder from version 4.2?

    WTF ?! πŸ˜€

    • Deven Rathore

      ha ha ! old directory tree?

      • Mitrandir

        What’s so funny in my sentence?
        Give me please this site working as a small proof πŸ˜‰

        • Deven Rathore

          you will get a live example i am developing a social networking site based on laravel and php ! thanks !

      • Mitrandir

        Or simple answer the question: where located app/config/app.php in Laravel 5.1?! Would I create it by hand or not?

        • Deven Rathore

          thanks for pointing it out !

        • Deven Rathore

          thanks for poiniting it out ! i appreciate your help !

  • Mitrandir

    Not at all, indeed πŸ™‚
    Deve, I think both of us want to see the best of the best learning materials about this awesome framework.
    I believe you’ll do your best to reach this goal.

    • Deven Rathore

      sure ! i will

    • Deven Rathore

      if you want to contribute you can do from here http://dunebook.com/contribute/

      • Mitrandir

        Thanks for the link. May be I would like to write some articles in my spare time.
        Good luck to you and yours!

        • Deven Rathore

          yeah sure

  • Mitrandir

    Is the correct path /app/config/app.php or simply /config/app.php? I think it’s an important moment, am I right?

    • Deven Rathore

      correct path is config/app.php in laravel 5 or up and app/config/app.php in laravel 4

      • Mitrandir

        And also for Laravel 5 the correct path for views is /resources/views, I guess.

        • Deven Rathore

          yup

      • Mitrandir

        Thanks!

  • Mitrandir

    And also you’ve some typos in your code, proof is here http://stackoverflow.com/questions/32157084/laravel-5-1-simple-error-with-image-variable
    πŸ˜‰

    • Deven Rathore

      thanks i will fix it

  • unbiased observer

    –Save the following code as images.php in the app directory:

    <?php
    class Photo extends Eloquent {–

    Can you please chose one name? either Photo or Image, the class is called photos, and inside it's Image

Pin It on Pinterest

Shares