라라벨 라우트 HTTPS 강제화하기

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:57 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
라라벨 라우트 https 강제화하기

1 라라벨 버전 5.4 이상[ | ]

AppServiceProvider@boot
    public function boot()
    {
        $this->app['request']->server->set('HTTPS', true);
    }

2 라라벨 버전 4.2 ~ 5.3[ | ]

  • route 지정부분 등 적당한 곳에...
URL::forceSchema('https');

3 같이 보기[ | ]

4 참고[ | ]

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