Skip to content

Commit

Permalink
Merge pull request #11 from gocanto/fork
Browse files Browse the repository at this point in the history
use global request() instead
  • Loading branch information
rossriley authored Sep 10, 2020
2 parents fc091ea + 50cbaa3 commit 8b67af4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Frozennode/Administrator/Includes/Multup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace Frozennode\Administrator\Includes;

use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
Expand Down Expand Up @@ -74,7 +73,7 @@ class Multup {

/**
* Instantiates the Multup
* @param mixed $file The file array provided by Laravel's Request::input('field_name') or a path to a file
* @param mixed $file The file array provided by Laravel's request('field_name') or a path to a file
*/
public function __construct($input, $rules, $path, $random)
{
Expand Down Expand Up @@ -121,7 +120,7 @@ public function set_length($len)
public function upload()
{

$this->image = array($this->input => Request::input($this->input));
$this->image = array($this->input => request($this->input));
$result = array();

$result[] = $this->post_upload_process($this->upload_image());
Expand Down

0 comments on commit 8b67af4

Please sign in to comment.