FileFactory
class FileFactory (View source)
Methods
File | create(string $name, int $kilobytes = 0) Create a new fake file. | |
File | image(string $name, int $width = 10, int $height = 10) Create a new fake image. | |
resource | generateImage(int $width, int $height, string $type) Generate a dummy image of the given width and height. |
Details
File create(string $name, int $kilobytes = 0)
Create a new fake file.
File image(string $name, int $width = 10, int $height = 10)
Create a new fake image.
protected resource generateImage(int $width, int $height, string $type)
Generate a dummy image of the given width and height.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Http/Testing/FileFactory.html