src/Anonym/Providers/SecurityProvider.php
private function prepareCsrfInstance(array $configs = [])
    {
        $configs = Config::get('security.csrf');

        $field = $configs['field_name'];
        $this->singleton(
            'security.csrf',
            function () use ($field) {
                return (new CsrfToken())->setFormFieldName($field);
            }
        );

    }
private function prepareCsrfInstance(array $configs = [])
    {
        $configs = Config::get('security.csrf');

        $field = $configs['field_name'];
        $this->singleton(
            'security.csrf',
            function () use ($field) {
                return (new CsrfToken())->setFormFieldName($field);
            }
        );

    }
private function prepareCsrfInstance ( array $ configs = [ ] ) { $ configs = Config :: get ( 'security.csrf' ) ; $ field = $ configs [ 'field_name' ] ; $ this -> singleton ( 'security.csrf' , function ( ) use ( $ field ) { return ( new CsrfToken ( ) ) -> setFormFieldName ( $ field ) ; } ) ; }
register the csrf token

@param array $configs
register the csrf token