내 레이아웃에 다음과 같은 헤더 파일을 추가하려고합니다.
Views / layouts / main_layout.blade.php
@include('layouts.header.stylesheets')
해당 파일의 내용은 다음과 같습니다.
@section('stylesheets')
{{ stylesheet_link_tag('style.css') }}
@stop
하지만 여기에는 아무것도 포함되어 있지 않습니다. 내가 뭘 잘못하고 있는지 말해 주시겠습니까?
파일을 포함하는 경우 다음을 수행하십시오.
Views / layouts / main_layout.blade.php
@include('layouts.header.stylesheets')
그런 다음 다른 파일에서 :
{{ stylesheet_link_tag('style.css') }}
해당 파일에있는 @section
경우 에만 사용 @yielding
합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다