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 (Apeldoorn)
Freek Van der Herten
September 26, 2019
Programming
0
130
Handling media in a Laravel app (Apeldoorn)
Freek Van der Herten
September 26, 2019
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
新卒でサービス立ち上げから Hasuraを使って3年経った振り返り
yutorin
0
200
How to Fight Production Incidents?
asatarin
0
150
ipa-medit: Memory search and patch tool for IPA without Jailbreaking/ipa-medit-bh2022-europe
tkmru
0
130
Amazon QuickSightのアップデート -re:Invent 2022の復習&2022年ハイライト-
shogo452
0
200
低レイヤーから始める GUI
fadis
18
9.2k
監視せなあかんし、五大紙だけにオオカミってな🐺🐺🐺🐺🐺
sadnessojisan
2
1.3k
ちょうぜつ改め21世紀ふつうのソフトウェア設計
tanakahisateru
7
6k
%q is for Quine
koic
0
400
フロントエンドで学んだことをデータ分析で使ってみた話
daichi_igarashi
0
170
tidy_rpart
bk_18
0
540
Gradle build: The time is now
nonews
1
370
CDKでValidationする本当の方法 / cdk-validation
gotok365
1
170
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
508
38k
4 Signs Your Business is Dying
shpigford
171
20k
Thoughts on Productivity
jonyablonski
49
2.7k
From Idea to $5000 a Month in 5 Months
shpigford
374
44k
What's new in Ruby 2.0
geeforr
336
30k
Navigating Team Friction
lara
176
12k
Support Driven Design
roundedbygravity
88
8.9k
Documentation Writing (for coders)
carmenintech
51
2.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
317
22k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
13
5.4k
The Art of Programming - Codeland 2020
erikaheidi
35
11k
Unsuck your backbone
ammeep
659
56k
Transcript
Handling media in a Laravel app
Freek Van der Herten Partner & developer at SPATIE @freekmurze
https://spatie.be https://flareapp.io https://ohdear.app https://freek.dev
Open source software
https://spatie.be/open-source
Some statistics on our open source work ± 250 public
repositories on GitHub August 2016: ± 800 000 downloads August 2017: ± 5 000 000 downloads August 2018: ± 17 000 000 downloads August 2019: ± 45 000 000 downloads ± 2 700 000 downloads a month https://freek.dev/the-story-behind-our-open-source-efforts
Postcardware
Spatie Samberstraat 69D 2060 Antwerp Belgium
https://spatie.be/open-source/postcards
Let's talk about media
The problem User uploaded content Where to store it all?
How to retrieve it? How to optimize images?
The problem Boring code to write Need the same things
in every project Write it slightly different in each project
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
https://docs.spatie.be/laravel-medialibrary
None
Demo
Wrapping up
Resources https://docs.spatie.be/laravel-medialibrary/v7 https://www.youtube.com/watch?v=4lq_6JLR2H8 https://github.com/spatie/laravel-medialibrary
Future plans JavaScript components Uploads Release Q1 2020
Teamwork Sebastian De Deyne @sebdedeyne Willem Van Bockstal @willemvbockstal
Alex Vanderbist @alexvanderbist Brent Roose @brendt_gd
Freek Van der Herten Partner & developer at SPATIE @freekmurze
https://spatie.be https://flareapp.io https://ohdear.app https://freek.dev