Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Medialibrary (Laravel Brussels)

Medialibrary (Laravel Brussels)

Freek Van der Herten

November 14, 2017
Tweet

More Decks by Freek Van der Herten

Other Decks in Technology

Transcript

  1. Handling media
    in a Laravel app

    View full-size slide

  2. About me
    Freek Van der Herten
    Partner & developer at SPATIE
    Blogging at https://murze.be
    Building https://ohdearapp.com

    View full-size slide

  3. About me
    phpantwerp.be
    Dries Vints
    @driesvints
    Frederick Vanbrabant
    @maybeFrederick

    View full-size slide

  4. Since 2003
    Websites, applications and webshops
    Team
    5 developers, 1 manager
    Specialization
    Laravel development

    View full-size slide

  5. https://spatie.be/en/vacancies

    View full-size slide

  6. https://spatie.be/opensource

    View full-size slide

  7. WE ❤ POSTCARDS

    View full-size slide

  8. Spatie

    Samberstraat 69D
    2060 Antwerp

    Belgium

    View full-size slide

  9. HANDLING MEDIA

    View full-size slide

  10. User uploaded content
    Where to store it all?
    How to retrieve it?
    How to create derived images?
    The problem

    View full-size slide

  11. LARAVEL MEDIALIBRARY

    View full-size slide

  12. Associate files with Eloquent models
    Can group media into collections
    Image conversions
    Uses multiple filesystems
    Easily installed into any Laravel application
    Laravel Medialibrary

    View full-size slide

  13. Optimize converted images
    Custom image generators
    Customize directory structure
    Custom attributes
    Easily installed into any Laravel application
    Laravel Medialibrary

    View full-size slide

  14. https://docs.spatie.be/laravel-medialibrary

    View full-size slide

  15. https://docs.spatie.be/laravel-medialibrary/v6


    https://docs.spatie.be/image/v1/introduction


    https://www.youtube.com/watch?v=4lq_6JLR2H8


    https://github.com/spatie/laravel-medialibrary

    Resources

    View full-size slide

  16. Future plans
    Vue components


    Upload directly to S3


    Support for responsive images / srcset


    View full-size slide

  17. Thank you!
    https://speakerdeck.com/freekmurze/medialibrary-laravel-brussels
    https://spatie.be/opensource
    https://murze.be
    https://murze.be/newsletter/

    View full-size slide