BookStackApp/BookStack

View on GitHub
resources/views/form/request-query-inputs.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
{{--
$params - The query paramters to convert to inputs.
--}}
@foreach(array_intersect_key(request()->query(), array_flip($params)) as $name => $value)
    @if ($value)
    <input type="hidden" name="{{ $name }}" value="{{ $value }}">
    @endif
@endforeach