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
290
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
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
530
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
ポケモンで学ぶiOS 16弾丸ツアー 🚅
giginet
PRO
1
610
Micro Frontends with Module Federation @MicroFrontend Summit 2023
manfredsteyer
PRO
0
550
Writing Greener Java Applications
hollycummins
0
340
PHPDocにおける配列の型定義を少し知る
shimabox
1
140
OSC大阪 パスワード認証は人類には早すぎる ~ IDaaSを使ったソーシャルログインのすすめ ~
authyasan
7
1.4k
2023年にクル(かもしれない)通信ミドルウェア技術(仮)
s_hosoai
0
200
Makuakeの認証基盤とRe-Architectureチーム
bmf_san
0
580
Swift Expression Macros: a practical introduction
kishikawakatsumi
2
720
Functional Data Engineering - A Blueprint for adopting functional principles in data pipeline
vananth22
0
180
Excelの助けを借りて楽にシナリオを作ろう
rpa_niiyama
0
300
Workshop on Jetpack compose
aldefy
0
140
SwiftPMのPlugin入門 / introduction_to_swiftpm_plugin
uhooi
2
100
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.5k
Documentation Writing (for coders)
carmenintech
51
2.9k
A Modern Web Designer's Workflow
chriscoyier
689
180k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
152
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
BBQ
matthewcrist
75
8.1k
Why Our Code Smells
bkeepers
PRO
326
55k
Support Driven Design
roundedbygravity
88
8.9k
Happy Clients
brianwarren
90
5.8k
Six Lessons from altMBA
skipperchong
15
2.3k
Debugging Ruby Performance
tmm1
67
11k
What's in a price? How to price your products and services
michaelherold
233
9.7k
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