"라라벨 csrf token()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
3번째 줄: 3번째 줄:
;라라벨 csrf_token()
;라라벨 csrf_token()


<source lang='php'>
<syntaxhighlight lang='php'>
function csrf_token()
function csrf_token()
{
{
12번째 줄: 12번째 줄:
     throw new RuntimeException('Application session store not set.');
     throw new RuntimeException('Application session store not set.');
}
}
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[Laravel 헬퍼 함수]]
* [[Laravel 헬퍼 함수]]
* [[라라벨 app()]]
* [[라라벨 csrf_field()]]
* [[라라벨 csrf_field()]]
* [[CSRF]]
* [[토큰]]


==참고==
==참고==

2020년 11월 2일 (월) 02:58 기준 최신판

1 개요[ | ]

라라벨 csrf_token()
function csrf_token()
{
    $session = app('session');
    if (isset($session)) {
        return $session->token();
    }
    throw new RuntimeException('Application session store not set.');
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}