Handling mediain a Laravel app
View Slide
About meFreek Van der HertenPartner & developer at SPATIEBlogging at https://murze.beBuilding https://ohdearapp.com
About mephpantwerp.beDries Vints@driesvintsFrederick Vanbrabant@maybeFrederick
Since 2003Websites, applications and webshopsTeam5 developers, 1 managerSpecializationLaravel development
https://spatie.be/en/vacancies
https://spatie.be/opensource
WE ❤ POSTCARDS
Spatie Samberstraat 69D2060 Antwerp Belgium
HANDLING MEDIA
User uploaded contentWhere to store it all?How to retrieve it?How to create derived images?The problem
LARAVEL MEDIALIBRARY
Associate files with Eloquent modelsCan group media into collectionsImage conversionsUses multiple filesystemsEasily installed into any Laravel applicationLaravel Medialibrary
Optimize converted imagesCustom image generatorsCustomize directory structureCustom attributesEasily installed into any Laravel applicationLaravel Medialibrary
https://docs.spatie.be/laravel-medialibrary
DEMO
WRAPPING UP
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
Future plansVue components Upload directly to S3 Support for responsive images / srcset
Thank you!https://speakerdeck.com/freekmurze/medialibrary-laravel-brusselshttps://spatie.be/opensourcehttps://murze.behttps://murze.be/newsletter/
QUESTIONS?