File (Http)

File

class File extends File (View source)

Traits

FileHelpers

Methods

string path()

Get the fully qualified path to the file.

from FileHelpers
string extension()

Get the file's extension.

from FileHelpers
string clientExtension()

Get the file's extension supplied by the client.

from FileHelpers
string hashName(string $path = null)

Get a filename for the file that is the MD5 hash of the contents.

from FileHelpers

Details

string path()

Get the fully qualified path to the file.

Return Value

string

string extension()

Get the file's extension.

Return Value

string

string clientExtension()

Get the file's extension supplied by the client.

Return Value

string

string hashName(string $path = null)

Get a filename for the file that is the MD5 hash of the contents.

Parameters

string $path

Return Value

string

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部