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
46
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
freekmurze
0
72
freekmurze
0
260
freekmurze
1
380
freekmurze
1
190
freekmurze
0
350
freekmurze
0
110
freekmurze
1
320
freekmurze
0
320
freekmurze
0
100
Other Decks in Programming
See All in Programming
raulh82vlc
1
230
ianaya89
1
220
nkjzm
1
180
deepflow
9
3.4k
temoki
2
220
takutakahashi
3
290
legalforce
PRO
0
640
suzukiot
0
290
manfredsteyer
PRO
0
110
legalforce
PRO
1
720
rince
3
240
watilde
5
1.4k
Featured
See All Featured
kastner
54
1.9k
matthewcrist
73
7.5k
lara
590
61k
jeffersonlam
329
15k
hursman
106
9.3k
denniskardys
219
120k
mongodb
23
3.9k
skipperchong
8
720
andyhume
63
3.7k
maltzj
502
36k
reverentgeek
167
7.3k
shpigford
369
42k
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