app/Session.php
public static function getCsrfToken(): string
    {
        if (!self::has('CSRF_TOKEN')) {
            self::put('CSRF_TOKEN', Str::random(32));
        }

        return self::get('CSRF_TOKEN');
    }
public static function getCsrfToken(): string
    {
        if (!self::has('CSRF_TOKEN')) {
            self::put('CSRF_TOKEN', Str::random(32));
        }

        return self::get('CSRF_TOKEN');
    }
public static function getCsrfToken ( ) : string { if ( ! self :: has ( 'CSRF_TOKEN' ) ) { self :: put ( 'CSRF_TOKEN' , Str :: random ( 32 ) ) ; } return self :: get ( 'CSRF_TOKEN' ) ; }
Cross-Site Request Forgery tokens - ensure that the user is submitting
a form that was generated by the current session.

@return string
Cross - Site Request Forgery tokens - ensure that the user is submitting a form that was generated by the current session .