Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Handling media in a Laravel app (Laracon US)
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Freek Van der Herten
July 25, 2018
Programming
1
1.1k
Handling media in a Laravel app (Laracon US)
Freek Van der Herten
July 25, 2018
Tweet
Share
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
60
Uncharted packages (Laravel Live Denmark)
freekmurze
0
250
I shall define this only once
freekmurze
0
470
An Introduction to Snapshot testing
freekmurze
0
550
Event Sourcing In Laravel
freekmurze
0
280
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
860
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
900
A practical look at multitenancy in Laravel
freekmurze
1
400
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
780
Other Decks in Programming
See All in Programming
Ruby and LLM Ecosystem 2nd
koic
1
1.4k
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
270
The free-lunch guide to idea circularity
hollycummins
0
390
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
200
おれのAgentic Coding 2026/03
tsukasagr
1
120
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
210
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
450
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
320
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
690
KagglerがMixSeekを触ってみた
morim
0
350
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
4
1.4k
Smarter Angular mit Transformers.js & Prompt API
christianliebel
PRO
1
100
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.3k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
180
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
100
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
690
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
500
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
330
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
150
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
140
Amusing Abliteration
ianozsvald
0
150
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
420
Transcript
Handling media in a Laravel app
The problem User uploaded content Where to store it all?
How to retrieve it? How to optimize images?
Laravel Medialibrary
Laravel Medialibrary Associate files with Eloquent models Can group media
into collections Image conversions Uses multiple filesystems
Laravel Medialibrary Optimize converted images Custom image generators Customize directory
structure Custom attributes
Add file Upload, copy, … New media Derived formats Srcset,
crops, thumbs, … Existing model Eg. news item Disks Local or remote Database
https://docs.spatie.be/laravel-medialibrary
None
Demo
Wrapping up
Resources https://github.com/spatie/medialibrary-demo-laracon-us https://docs.spatie.be/laravel-medialibrary/v7 https://www.youtube.com/watch?v=4lq_6JLR2H8 https://github.com/spatie/laravel-medialibrary
Coming soon Vue components Uploads Administering a media
collection Release Q3 - Q4 2018
Teamwork Sebastian De Deyne @sebdedeyne Willem Van Bockstal @willemvbockstal
Alex Vanderbist @alexvanderbist Brent Roose @brendt_gd
Thank you! Freek Van der Herten Partner & developer at
SPATIE https://spatie.be/open-source https://ohdearapp.com https://murze.be