0
0

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.

laravelで外部ファイルを使用してcssを適用する手順

Posted at

laravelでcssを適用する時に躓いたので、メモをします。

  1. /public/css/にcssファイルを作成します。例としてstyles.cssという名前で作成したとします。

  2. viewファイルに以下の一文を記述します。
    <link rel="stylesheet" href="{{ asset('css/styles.css') }}">
    httpsで表示するページなら、assetの部分がsecure_assetになります。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?