Removed duplicated $allowed_columns

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-14 15:06:04 -07:00
parent 766e59acde
commit 954b54f914

View file

@ -27,8 +27,7 @@ class AccessoriesController extends Controller
public function index(Request $request)
{
$this->authorize('view', Accessory::class);
$allowed_columns = ['id', 'name', 'model_number', 'eol', 'notes', 'created_at', 'min_amt', 'company_id'];
// This array is what determines which fields should be allowed to be sorted on ON the table itself, no relations
// Relations will be handled in query scopes a little further down.
$allowed_columns =