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 (Apeldoorn)
Search
Freek Van der Herten
September 26, 2019
Programming
360
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Handling media in a Laravel app (Apeldoorn)
Freek Van der Herten
September 26, 2019
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
71
Uncharted packages (Laravel Live Denmark)
freekmurze
0
270
I shall define this only once
freekmurze
0
490
An Introduction to Snapshot testing
freekmurze
0
580
Event Sourcing In Laravel
freekmurze
0
290
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
890
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
930
A practical look at multitenancy in Laravel
freekmurze
1
410
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
800
Other Decks in Programming
See All in Programming
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.7k
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
290
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
340
これって Effect でできたのでは? / TSKaigi Mashup Kansai #2
susisu
0
140
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
AIエージェントで 変わるAndroid開発環境
takahirom
2
770
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
210
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
650
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.7k
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
1
270
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
210
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.8k
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Claude Code のすすめ
schroneko
67
230k
Code Review Best Practice
trishagee
74
20k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
460
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Prompt Engineering for Job Search
mfonobong
0
390
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
820
Chasing Engaging Ingredients in Design
codingconduct
0
260
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
270
It's Worth the Effort
3n
188
29k
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