1 2 3 4 5 6
import View from '@ioc:Adonis/Core/View'; export function fakeCsrfField(): void { // Create fake csrField function in the view View.global('csrfField', () => ''); }