2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SSLでLaravel5.1のヘルパー関数 url() を使う

Posted at

概略

L5のヘルパー関数 url()をSSL(https)上に設定されたページで使うときのメモ

  • Apache & SSL : 自動的にURLが"https://"に設定される
  • nginx & FastCGI & SSL : 自動的にURLが"https://"に設定されない

nginx & FastCGI & SSLでURL()を"https://"したい

example.php
echo url('foo/bar', $parameters = [], $secure = null);

ヘルパー関数 url()には、引数$secureがあるので、TRUEを設定する。

参照

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?