X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/framework/src/Illuminate/Http
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Http
/
📁
..
📁
Client
📁
Concerns
📁
Exceptions
📄
File.php
(155 B)
📄
FileHelpers.php
(1.18 KB)
📄
JsonResponse.php
(3.39 KB)
📄
LICENSE.md
(1.05 KB)
📁
Middleware
📄
RedirectResponse.php
(5.82 KB)
📄
Request.php
(17.81 KB)
📁
Resources
📄
Response.php
(3.03 KB)
📄
ResponseTrait.php
(3.75 KB)
📁
Testing
📄
UploadedFile.php
(4.01 KB)
📄
composer.json
(1.27 KB)
Editing: FileHelpers.php
<?php namespace Illuminate\Http; use Illuminate\Support\Str; trait FileHelpers { /** * The cache copy of the file's hash name. * * @var string */ protected $hashName = null; /** * Get the fully qualified path to the file. * * @return string */ public function path() { return $this->getRealPath(); } /** * Get the file's extension. * * @return string */ public function extension() { return $this->guessExtension(); } /** * Get a filename for the file. * * @param string|null $path * @return string */ public function hashName($path = null) { if ($path) { $path = rtrim($path, '/').'/'; } $hash = $this->hashName ?: $this->hashName = Str::random(40); if ($extension = $this->guessExtension()) { $extension = '.'.$extension; } return $path.$hash.$extension; } /** * Get the dimensions of the image (if applicable). * * @return array|null */ public function dimensions() { return @getimagesize($this->getRealPath()); } }
Upload File
Create Folder