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 eu)
Freek Van der Herten
August 30, 2018
Programming
1
260
Handling media in a Laravel app (Laracon eu)
Freek Van der Herten
August 30, 2018
Tweet
Share
More Decks by Freek Van der Herten
See All by Freek Van der Herten
An Introduction to Snapshot testing
freekmurze
0
210
Event Sourcing In Laravel
freekmurze
0
140
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
460
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
1
490
A practical look at multitenancy in Laravel
freekmurze
1
240
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
450
Highlights Flare codebase (Laracon online)
freekmurze
0
180
Introducing Mailcoach
freekmurze
1
380
Highlights from the Flare codebase (Full Stack Ghent)
freekmurze
0
420
Other Decks in Programming
See All in Programming
Get Ready for Jakarta EE 10
ivargrimstad
0
2.8k
GoogleI/O2022 LT報告会資料
shinsukefujita1126
0
400
git on intellij
hiroto_kitamura
0
170
[월간 데이터리안 세미나 6월] 스스로 성장하는 분석가 커리어 이야기
datarian
0
250
ゴーファーくんと辿るプログラミング言語の歴史/history-of-programming-languages-with-gopher
iwasiman
5
3.3k
engineer
spacemarket
0
4.6k
短納期でローンチした新サービスをJavaで開発した話/launched new service using Java
eichisanden
6
2k
Jetpack Composeでの画面遷移
iwata_n
0
190
Chart実装が楽になりました。
keisukeyamagishi
0
120
Jetpack Compose best practices 動画紹介 @GoogleI/O LT会
takakitojo
0
390
設計の学び方:自分流のススメ
masuda220
PRO
10
7.4k
大規模プロダクトにLinterを導入し運用している話
hirokiotsuka
0
240
Featured
See All Featured
Navigating Team Friction
lara
175
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
105
16k
Six Lessons from altMBA
skipperchong
14
1.4k
How to name files
jennybc
40
61k
Raft: Consensus for Rubyists
vanstee
126
5.5k
No one is an island. Learnings from fostering a developers community.
thoeni
9
1.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
29
4.3k
The Pragmatic Product Professional
lauravandoore
19
3k
Mobile First: as difficult as doing things right
swwweet
213
7.5k
Typedesign – Prime Four
hannesfritz
34
1.4k
For a Future-Friendly Web
brad_frost
166
7.4k
A Tale of Four Properties
chriscoyier
149
21k
Transcript
Handling media in a Laravel app
Freek Van der Herten Partner & developer at SPATIE @freekmurze
https://spatie.be https://ohdearapp.com https://fullstackeurope.com https://murze.be
Open source software
https://spatie.be/open-source
Some statistics ± 200 public repositories on GitHub August 2016:
± 800 000 downloads August 2017: ± 5 000 000 downloads August 2018: ± 17 000 000 downloads ± 1 250 000 downloads a month https://murze.be/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://github.com/spatie/medialibrary-demo-laracon https://docs.spatie.be/laravel-medialibrary/v7 https://www.youtube.com/watch?v=4lq_6JLR2H8 https://github.com/spatie/laravel-medialibrary
Future plans Vue components Uploads Nova Tool
Release Q4 2018 - Q1 2019
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://ohdearapp.com https://fullstackeurope.com https://murze.be