Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Handling media in a Laravel app (Laracon US)
Freek Van der Herten
July 25, 2018
Programming
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
I shall define this only once
freekmurze
0
240
An Introduction to Snapshot testing
freekmurze
0
250
Event Sourcing In Laravel
freekmurze
0
160
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
520
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
540
A practical look at multitenancy in Laravel
freekmurze
1
250
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
500
Highlights Flare codebase (Laracon online)
freekmurze
0
220
Introducing Mailcoach
freekmurze
1
420
Other Decks in Programming
See All in Programming
Step Functions Distributed Map を使ってみた
codemountains
0
100
和暦を正しく扱うための暦の話
nagise
10
4.8k
爆速の日経電子版開発の今
shinyaigeek
1
530
Remote SSHで行うVS Codeリモートホスト開発とトラブルシューティング
smt7174
1
430
ipa-medit: Memory search and patch tool for IPA without Jailbreaking/ipa-medit-bh2022-europe
tkmru
0
130
新卒でサービス立ち上げから Hasuraを使って3年経った振り返り
yutorin
0
210
NGK2023S - OCaml最高! スマホ開発にも使えちゃう?!
haochenxie
0
110
Git Rebase
bkuhlmann
10
1.2k
OIDC仕様に準拠した Makuake ID連携基盤構築の裏側
ymtdzzz
0
300
(新米)エンジニアリングマネージャーのしごと #RSGT2023
murabayashi
9
5.5k
ペパカレで入社した私が感じた2つのギャップと向き合い方
kosuke_ito
0
160
Workshop on Jetpack compose
aldefy
0
140
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
22
1.7k
Optimizing for Happiness
mojombo
365
64k
Designing for humans not robots
tammielis
245
24k
Building an army of robots
kneath
301
40k
Art, The Web, and Tiny UX
lynnandtonic
284
18k
A better future with KSS
kneath
230
16k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.2k
Build your cross-platform service in a week with App Engine
jlugia
221
17k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
500
130k
Testing 201, or: Great Expectations
jmmastey
25
5.7k
Pencils Down: Stop Designing & Start Developing
hursman
114
10k
Producing Creativity
orderedlist
PRO
335
37k
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