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
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
55
Uncharted packages (Laravel Live Denmark)
freekmurze
0
250
I shall define this only once
freekmurze
0
470
An Introduction to Snapshot testing
freekmurze
0
540
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
390
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
770
Other Decks in Programming
See All in Programming
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
590
CSC307 Lecture 11
javiergs
PRO
0
590
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
220
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
310
2026/02/04 AIキャラクター人格の実装論 口 調の模倣から、コンテキスト制御による 『思想』と『行動』の創発へ
sr2mg4
0
700
Codex の「自走力」を高める
yorifuji
0
960
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
480
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
210
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
360
The Ralph Wiggum Loop: First Principles of Autonomous Development
sembayui
0
3.7k
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Six Lessons from altMBA
skipperchong
29
4.2k
Side Projects
sachag
455
43k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
87
SEO for Brand Visibility & Recognition
aleyda
0
4.3k
A Tale of Four Properties
chriscoyier
163
24k
Technical Leadership for Architectural Decision Making
baasie
3
270
Are puppies a ranking factor?
jonoalderson
1
3.1k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
360
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
120
We Have a Design System, Now What?
morganepeng
55
8k
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