Slide 1

Slide 1 text

Handling media
 in a Laravel app

Slide 2

Slide 2 text

Freek Van der Herten Partner & developer at SPATIE @freekmurze https://spatie.be https://flareapp.io https://ohdear.app https://freek.dev

Slide 3

Slide 3 text

Open source software

Slide 4

Slide 4 text

https://spatie.be/open-source

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Postcardware

Slide 7

Slide 7 text

Spatie
 Samberstraat 69D
 2060 Antwerp
 Belgium


Slide 8

Slide 8 text

https://spatie.be/open-source/postcards

Slide 9

Slide 9 text

Let's talk 
 about media

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

The problem Boring code to write Need the same things in every project Write it slightly different in each project

Slide 12

Slide 12 text

Laravel 
 Medialibrary

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Demo

Slide 18

Slide 18 text

Wrapping up

Slide 19

Slide 19 text

Resources https://docs.spatie.be/laravel-medialibrary/v7
 
 https://www.youtube.com/watch?v=4lq_6JLR2H8
 
 https://github.com/spatie/laravel-medialibrary

Slide 20

Slide 20 text

Future plans JavaScript components
 
 Uploads
 
 Release Q1 2020

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

Freek Van der Herten Partner & developer at SPATIE @freekmurze https://spatie.be https://flareapp.io https://ohdear.app https://freek.dev