Slide 1

Slide 1 text

Handling media
 in a Laravel app

Slide 2

Slide 2 text

The problem User uploaded content Where to store it all? How to retrieve it? How to optimize images?

Slide 3

Slide 3 text

Laravel 
 Medialibrary

Slide 4

Slide 4 text

Laravel Medialibrary Associate files with Eloquent models Can group media into collections Image conversions Uses multiple filesystems

Slide 5

Slide 5 text

Laravel Medialibrary Optimize converted images Custom image generators Customize directory structure Custom attributes

Slide 6

Slide 6 text

Add file
 Upload, copy, … New media Derived formats
 Srcset, crops, thumbs, … Existing model
 Eg. news item Disks
 Local or remote Database

Slide 7

Slide 7 text

https://docs.spatie.be/laravel-medialibrary

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Demo

Slide 10

Slide 10 text

Wrapping up

Slide 11

Slide 11 text

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


Slide 12

Slide 12 text

Coming soon Vue components
 
 Uploads
 
 Administering a media collection
 
 Release Q3 - Q4 2018

Slide 13

Slide 13 text

Teamwork Sebastian De Deyne
 @sebdedeyne
 
 Willem Van Bockstal
 @willemvbockstal
 
 Alex Vanderbist
 @alexvanderbist
 
 Brent Roose
 @brendt_gd

Slide 14

Slide 14 text

Thank you! Freek Van der Herten Partner & developer at SPATIE https://spatie.be/open-source https://ohdearapp.com https://murze.be