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 webshopsTeam6 developers, 1 managerSpecializationLaravel development
https://spatie.be/opensource
http://github-awards.com/users?type=world&language=phpOpen source software
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 attributesLaravel 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 plansGreater control over media collections Vue components Upload directly to S3 Support for responsive images / srcset
Thank you!https://speakerdeck.com/freekmurze/medialibrary-laravel-parishttps://spatie.be/opensourcehttps://murze.behttps://murze.be/newsletter/
QUESTIONS?