PHP Class Spatie\MediaLibrary\FileAdder\FileAdderFactory

Show file Open project: spatie/laravel-medialibrary

Public Methods

Method Description
create ( Model $subject, string | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : FileAdder
createFromRequest ( Model $subject, string $key ) : FileAdder

Method Details

create() public static method

public static create ( Model $subject, string | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : FileAdder
$subject Illuminate\Database\Eloquent\Model
$file string | Symfony\Component\HttpFoundation\File\UploadedFile
return FileAdder

createFromRequest() public static method

public static createFromRequest ( Model $subject, string $key ) : FileAdder
$subject Illuminate\Database\Eloquent\Model
$key string
return FileAdder