Skip to content

Commit

Permalink
Merge pull request #9 from gocanto/fork
Browse files Browse the repository at this point in the history
Replace the Input facade
  • Loading branch information
rossriley authored Sep 9, 2020
2 parents b4580cf + 43acf96 commit fc091ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Frozennode/Administrator/Includes/Multup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Frozennode\Administrator\Includes;

use Illuminate\Support\Facades\Input;
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 +74,7 @@ class Multup {

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

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

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

0 comments on commit fc091ea

Please sign in to comment.