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 (Laravel Live Denmark)
freekmurze
0
180
I shall define this only once
freekmurze
0
380
An Introduction to Snapshot testing
freekmurze
0
460
Event Sourcing In Laravel
freekmurze
0
230
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
770
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
820
A practical look at multitenancy in Laravel
freekmurze
1
330
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
700
Highlights Flare codebase (Laracon online)
freekmurze
0
460
Other Decks in Programming
See All in Programming
生成AIで加速するテスト実装 - ロリポップ for Gamersの事例と 生成AIエディタの活用
kinosuke01
0
130
Honoをフロントエンドで使う 3つのやり方
yusukebe
7
3.6k
Formの複雑さに立ち向かう
bmthd
1
940
Jasprが凄い話
hyshu
0
170
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
990
kintone開発を効率化するためにチームで試した施策とその結果を大放出!
oguemon
0
170
お前もAI鬼にならないか?👹Bolt & Cursor & Supabase & Vercelで人間をやめるぞ、ジョジョー!👺
taishiyade
7
4.2k
Generating OpenAPI schema from serializers throughout the Rails stack - Kyobashi.rb #5
envek
1
390
Jakarta EE meets AI
ivargrimstad
0
440
未経験でSRE、はじめました! 組織を支える役割と軌跡
curekoshimizu
1
160
機能が複雑化しても 頼りになる FactoryBotの話
tamikof
1
210
Rubyと自由とAIと
yotii23
6
1.8k
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
12
1k
Facilitating Awesome Meetings
lara
52
6.2k
Making Projects Easy
brettharned
116
6k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Mobile First: as difficult as doing things right
swwweet
223
9.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Faster Mobile Websites
deanohume
306
31k
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