Skip to content

Commit 26671f4

Browse files
committed
fix: update input handling to use Request facade in filter blade template
1 parent c1f9f4b commit 26671f4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"require": {
2121
"php": "^8.2",
22-
"illuminate/support": "^11.0 || ^12.0",
22+
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
2323
"kalnoy/nestedset": "v6.0.5",
2424
"naxeem/thaana-transliterator": "^1.0",
2525
"anhskohbo/no-captcha": "^3.0",

resources/views/admin/components/post-type/filter.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@php
2-
use Illuminate\Support\Facades\Input;
2+
use Illuminate\Http\Request;use Illuminate\Support\Facades\Input;
33
@endphp
44
@component('admin.components.filter')
55
<div class="row">
@@ -14,7 +14,7 @@
1414
<div class="form-group">
1515
{!! Form::label('status', _d('Status')) !!}
1616
@php
17-
$selected_status = Input::get('status', old('status'));
17+
$selected_status = Request::input('status', old('status'));
1818
$statuses = \Javaabu\Helpers\Enums\PublishStatuses::getLabels();
1919
@endphp
2020
{!! Form::select('status', ['' => ''] + $statuses, $selected_status, [
@@ -28,7 +28,7 @@
2828
<div class="form-group">
2929
{!! Form::label('category', _d('Category')) !!}
3030
@php
31-
$selected_category = Input::get('category', old('category'));
31+
$selected_category = Request::input('category', old('category'));
3232
$categories = $category_type->categories()
3333
->whereId($selected_category)
3434
->get()

0 commit comments

Comments
 (0)