Shift Input to Request facade

Laravel 5.2 no longer registers the `Input` facade by default. While
still available in Laravel 5, the `Input` facade is removed in
Laravel 6.
This commit is contained in:
Laravel Shift 2021-02-14 18:21:31 +00:00
parent 840d4ce093
commit 0c9447a817

View file

@ -25,7 +25,7 @@ use App\Models\User;
use Auth; use Auth;
use Carbon\Carbon; use Carbon\Carbon;
use DB; use DB;
use Illuminate\Support\Facades\Input;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException; use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken; use League\OAuth2\Client\Token\AccessToken;
use Log; use Log;
@ -132,8 +132,8 @@ class AuthController extends Controller
*/ */
public function postPoniverseAccountSync() public function postPoniverseAccountSync()
{ {
$poniverseId = Input::get('id'); $poniverseId = Request::get('id');
$updatedAttribute = Input::get('attribute'); $updatedAttribute = Request::get('attribute');
// Only email address updates are supported at this time. // Only email address updates are supported at this time.
if ('email' !== $updatedAttribute) { if ('email' !== $updatedAttribute) {