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 (Laracon eu)
Search
Freek Van der Herten
August 30, 2018
Programming
400
1
Share
Handling media in a Laravel app (Laracon eu)
Freek Van der Herten
August 30, 2018
More Decks by Freek Van der Herten
See All by Freek Van der Herten
Uncharted packages (ode aan de code)
freekmurze
0
62
Uncharted packages (Laravel Live Denmark)
freekmurze
0
250
I shall define this only once
freekmurze
0
470
An Introduction to Snapshot testing
freekmurze
0
550
Event Sourcing In Laravel
freekmurze
0
280
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
860
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
910
A practical look at multitenancy in Laravel
freekmurze
1
400
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
780
Other Decks in Programming
See All in Programming
Java 21/25 Virtual Threads 소개
debop
0
340
アーキテクチャモダナイゼーションとは何か
nwiizo
17
4.8k
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
890
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
250
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
370
10 Tips of AWS ~Gen AI on AWS~
licux
5
200
「速くなった気がする」をデータで疑う
senleaf24
0
150
Symfonyの特性(設計思想)を手軽に活かす特性(trait)
ickx
0
130
まかせられるPM・まかせられないPM / DevTech GUILD Meetup
yusukemukoyama
0
110
事業会社でのセキュリティ長期インターンについて
masachikaura
0
240
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.3k
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
1k
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
720
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
320
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
200
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
190
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