Remove "remember query strings" middleware
This commit is contained in:
parent
18ddb912f3
commit
0f53e51169
|
@ -60,7 +60,6 @@ class Kernel extends HttpKernel
|
||||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||||
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
|
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
|
||||||
'remember' => \Reinink\RememberQueryStrings::class,
|
|
||||||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
||||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
"mockery/mockery": "^1.3.1",
|
"mockery/mockery": "^1.3.1",
|
||||||
"nunomaduro/collision": "^5.0",
|
"nunomaduro/collision": "^5.0",
|
||||||
"phpunit/phpunit": "^9.3",
|
"phpunit/phpunit": "^9.3",
|
||||||
"reinink/remember-query-strings": "^0.1.0",
|
|
||||||
"tightenco/ziggy": "^0.8.0"
|
"tightenco/ziggy": "^0.8.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -93,11 +93,10 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
|
||||||
let query = pickBy(this.form)
|
|
||||||
this.$inertia.get(this.route('contacts'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
|
||||||
}, 150),
|
|
||||||
deep: true,
|
deep: true,
|
||||||
|
handler: throttle(function() {
|
||||||
|
this.$inertia.get(this.route('contacts'), pickBy(this.form), { preserveState: true })
|
||||||
|
}, 150),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -85,11 +85,10 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
|
||||||
let query = pickBy(this.form)
|
|
||||||
this.$inertia.get(this.route('organizations'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
|
||||||
}, 150),
|
|
||||||
deep: true,
|
deep: true,
|
||||||
|
handler: throttle(function() {
|
||||||
|
this.$inertia.get(this.route('organizations'), pickBy(this.form), { preserveState: true })
|
||||||
|
}, 150),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -90,11 +90,10 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
|
||||||
let query = pickBy(this.form)
|
|
||||||
this.$inertia.get(this.route('users'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
|
||||||
}, 150),
|
|
||||||
deep: true,
|
deep: true,
|
||||||
|
handler: throttle(function() {
|
||||||
|
this.$inertia.get(this.route('users'), pickBy(this.form), { preserveState: true })
|
||||||
|
}, 150),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -43,7 +43,7 @@ Route::get('/', [DashboardController::class, 'index'])
|
||||||
|
|
||||||
Route::get('users', [UsersController::class, 'index'])
|
Route::get('users', [UsersController::class, 'index'])
|
||||||
->name('users')
|
->name('users')
|
||||||
->middleware('remember', 'auth');
|
->middleware('auth');
|
||||||
|
|
||||||
Route::get('users/create', [UsersController::class, 'create'])
|
Route::get('users/create', [UsersController::class, 'create'])
|
||||||
->name('users.create')
|
->name('users.create')
|
||||||
|
@ -73,7 +73,7 @@ Route::put('users/{user}/restore', [UsersController::class, 'restore'])
|
||||||
|
|
||||||
Route::get('organizations', [OrganizationsController::class, 'index'])
|
Route::get('organizations', [OrganizationsController::class, 'index'])
|
||||||
->name('organizations')
|
->name('organizations')
|
||||||
->middleware('remember', 'auth');
|
->middleware('auth');
|
||||||
|
|
||||||
Route::get('organizations/create', [OrganizationsController::class, 'create'])
|
Route::get('organizations/create', [OrganizationsController::class, 'create'])
|
||||||
->name('organizations.create')
|
->name('organizations.create')
|
||||||
|
@ -103,7 +103,7 @@ Route::put('organizations/{organization}/restore', [OrganizationsController::cla
|
||||||
|
|
||||||
Route::get('contacts', [ContactsController::class, 'index'])
|
Route::get('contacts', [ContactsController::class, 'index'])
|
||||||
->name('contacts')
|
->name('contacts')
|
||||||
->middleware('remember', 'auth');
|
->middleware('auth');
|
||||||
|
|
||||||
Route::get('contacts/create', [ContactsController::class, 'create'])
|
Route::get('contacts/create', [ContactsController::class, 'create'])
|
||||||
->name('contacts.create')
|
->name('contacts.create')
|
||||||
|
|
Loading…
Reference in New Issue