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 US)
Search
Freek Van der Herten
July 25, 2018
Programming
1
1.1k
Handling media in a Laravel app (Laracon US)
Freek Van der Herten
July 25, 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
320
An Introduction to Snapshot testing
freekmurze
0
350
Event Sourcing In Laravel
freekmurze
0
190
Building a realtime dashboard with Laravel Livewire (PHPKonf)
freekmurze
0
660
A tour behind the scenes of Oh Dear (PHP Benelux)
freekmurze
2
680
A practical look at multitenancy in Laravel
freekmurze
1
280
A practical look at multitenancy in Laravel (Laracon US)
freekmurze
0
610
Highlights Flare codebase (Laracon online)
freekmurze
0
330
Introducing Mailcoach
freekmurze
1
510
Other Decks in Programming
See All in Programming
Laravel標準バリデーションでできること
hmb_ok
2
360
オブジェクトしこう
okuramasafumi
2
130
GitHub Copilot Tips and Tricks
yuichielectric
26
7.5k
Deno に Web 標準 API を実装する / Implementing Web Standard API to Deno
petamoriken
0
350
自作ソフト(VMagicMirror)がVRMA対応してる話+実装のTips
bakudreameater
0
110
マイ隙間家具OSSたちのご紹介
karupanerura
2
160
OpenAPI を守るのは難しい
ohmori_yusuke
2
150
【KMC春合宿2024】実装視点で見るNeural Radiance Fields
runningoutrate
0
150
WinUI 3デモ - "CommunityToolkit.Mvvm"NuGetパッケージ編
andrewkeepcoding
0
140
ここ1~2年くらいで 使えるようになった(主要ブラウザーの最新版 がすべて対応した ) ウェブの新機能について ランダムに喋る!
myzkyy
9
6.5k
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
110
TDDと今まで
kanayannet
0
140
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
12
1.4k
Fireside Chat
paigeccino
19
2.6k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
GitHub's CSS Performance
jonrohan
1023
450k
Automating Front-end Workflow
addyosmani
1353
200k
StorybookのUI Testing Handbookを読んだ
zakiyama
10
4.5k
Design by the Numbers
sachag
274
18k
Web Components: a chance to create the future
zenorocha
304
41k
The Art of Programming - Codeland 2020
erikaheidi
40
12k
Clear Off the Table
cherdarchuk
82
310k
Web development in the modern age
philhawksworth
201
10k
How GitHub Uses GitHub to Build GitHub
holman
467
290k
Transcript
Handling media in a Laravel app
The problem User uploaded content Where to store it all?
How to retrieve it? How to optimize images?
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
Add file Upload, copy, … New media Derived formats Srcset,
crops, thumbs, … Existing model Eg. news item Disks Local or remote Database
https://docs.spatie.be/laravel-medialibrary
None
Demo
Wrapping up
Resources https://github.com/spatie/medialibrary-demo-laracon-us https://docs.spatie.be/laravel-medialibrary/v7 https://www.youtube.com/watch?v=4lq_6JLR2H8 https://github.com/spatie/laravel-medialibrary
Coming soon Vue components Uploads Administering a media
collection Release Q3 - Q4 2018
Teamwork Sebastian De Deyne @sebdedeyne Willem Van Bockstal @willemvbockstal
Alex Vanderbist @alexvanderbist Brent Roose @brendt_gd
Thank you! Freek Van der Herten Partner & developer at
SPATIE https://spatie.be/open-source https://ohdearapp.com https://murze.be