FileFactory (Http\Testing)

FileFactory

class FileFactory (View source)

Methods

File create(string $name, int $kilobytes)

Create a new fake file.

File image(string $name, int $width = 10, int $height = 10)

Create a new fake image.

Details

File create(string $name, int $kilobytes)

Create a new fake file.

Parameters

string $name
int $kilobytes

Return Value

File

File image(string $name, int $width = 10, int $height = 10)

Create a new fake image.

Parameters

string $name
int $width
int $height

Return Value

File

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Http/Testing/FileFactory.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部