PHP Class Spatie\MediaLibrary\FileAdder\FileAdderFactory

显示文件 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