<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 在 Blade 視圖中打印(Echoing)數據 ~~~ Hello, {{ $name }}. The current UNIX timestamp is {{ time() }}. ~~~ ## 檢查數據是否存在后再打印數據 有時候您想要打印一個變量,但您不確定這個變量是否存在,通常情況下,您會想要這樣寫:: ~~~ {{ isset($name) ? $name : 'Default' }} ~~~ 然而,除了寫這種三元運算符語法之外,Blade 讓您可以使用下面這種更簡便的語法: ~~~ {{ $name or 'Default' }} ~~~ ## 使用花括號顯示文字 如果您需要顯示的一個字符串剛好被花括號包起來,您可以在花括號之前加上 `@ 符號`前綴來跳出 Blade 引擎的解析: ~~~ @{{ This will not be processed by Blade }} ~~~ 如果您不想數據被轉義, 也可以使用如下語法: ~~~ Hello, {!! $name !!}. ~~~ > 特別注意: 在您的應用程序打印用戶所提供的內容時要非常小心。請記得永遠使用雙重花括號來轉義內容中的 HTML 實體字符串。 ## If 聲明 ~~~ @if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endif @unless (Auth::check()) You are not signed in. @endunless ~~~ ## 循環 ~~~ @for ($i = 0; $i < 10; $i++) The current value is {{ $i }} @endfor @foreach ($users as $user) <p>This is user {{ $user->id }}</p> @endforeach @forelse($users as $user) <li>{{ $user->name }}</li> @empty <p>No users</p> @endforelse @while (true) <p>I'm looping forever.</p> @endwhile ~~~ ## 加載子視圖 ~~~ @include('view.name') ~~~ 您也可以通過傳入數組的形式將數據傳遞給加載的子視圖: ~~~ @include('view.name', ['some' => 'data']) ~~~ ## 重寫區塊 如果想要重寫掉前面區塊中的內容,您可以使用 overwrite 聲明: ~~~ @extends('list.item.container') @section('list.item.content') <p>This is an item of type {{ $item->type }}</p> @overwrite ~~~ ## 顯示語言行 ~~~ @lang('language.line') @choice('language.line', 1) ~~~ ## 注釋 ~~~ {{-- This comment will not be in the rendered HTML --}} ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看