...完全控制 Monolog 的實(shí)例化和配置,你可以在 config/logging.php 配置文件中指定 custom 驅(qū)動(dòng)程序類(lèi)型。 你的配置應(yīng)該包含一個(gè) via 選項(xiàng),指向?qū)⒈徽{(diào)用以創(chuàng)建 Monolog 實(shí)例的工廠類(lèi):'channels' => [ 'custom' => [ 'driver' =&...
http://m.o2fo.com/laravel_8/laravel_8-zofe3gwx.html...個(gè)數(shù)組并將其渲染成 JSON 。例如:<script> var app = <?php echo json_encode($array); ?>; </script>Copy 當(dāng)然,您亦可使用 @json Blade 指令來(lái)代替手動(dòng)調(diào)用 json_encode 方法。 @json 指令的參數(shù)和 PHP 的 json_encode 函數(shù)一致:<script> var ap...
http://m.o2fo.com/laravel_8/laravel_8-yaqc3gxw.html... @endif 指令構(gòu)造 if 語(yǔ)句。這些指令功能與它們所對(duì)應(yīng)的 PHP 語(yǔ)句完全一致:@if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endifCopy 為了方便, Blade 還提供了一個(gè) @unless ...
http://m.o2fo.com/laravel_8/laravel_8-pxlu3gy0.html除了條件語(yǔ)句, Blade 還提供了與 PHP 循環(huán)結(jié)構(gòu)功能相同的指令。同樣,這些語(yǔ)句的功能和它們所對(duì)應(yīng)的 PHP 語(yǔ)法一致:@for ($i = 0; $i < 10; $i++) The current value is {{ $i }} @endfor @foreach ($users as $user) <p>This is user {{ $user->id }}</p&g...
http://m.o2fo.com/laravel_8/laravel_8-irxh3gy5.html...e 變量來(lái)顯示錯(cuò)誤信息:<!-- /resources/views/post/create.blade.php --> <label for="title">Post Title</label> <input id="title" type="text" class="@error('title') is-invalid @enderror"> @error('title') <div class="alert alert-danger">{{ $message ...
http://m.o2fo.com/laravel_8/laravel_8-7bio3gyd.html...組件具有以下標(biāo)記:<!-- /resources/views/components/alert.blade.php --> <div class="alert alert-danger"> {{ $slot }} </div> 我門(mén)可以通過(guò)向組件注入內(nèi)容的方式,將內(nèi)容傳遞到 slot :<x-alert> <strong>Whoops!</strong> Something went wrong...
http://m.o2fo.com/laravel_8/laravel_8-vap23gyg.html...s 目錄下。例如,假設(shè)您在 resources/views/components/alert.blade.php 中定義了一個(gè)組件:<x-alert/> 如果組件在 components 目錄的子目錄中,您可以使用 . 字符來(lái)指定其路徑。例如,假設(shè)組件被定義在 resources/views/components/inputs/button.blade...
http://m.o2fo.com/laravel_8/laravel_8-b6sj3gyi.html...件中。普通的值可以通過(guò)簡(jiǎn)單的 HTML 屬性來(lái)傳遞給組件。PHP 表達(dá)式和變量應(yīng)該通過(guò)以 : 字符作為前綴的變量來(lái)進(jìn)行傳遞:<x-alert type="error" :message="$message"/>Copy您應(yīng)該在類(lèi)的構(gòu)造器中定義組件的必要數(shù)據(jù)。在組件的視圖中,組...
http://m.o2fo.com/laravel_8/laravel_8-6mu93gyn.html...用程序支持的每種語(yǔ)言的子目錄:/resources /lang /en messages.php /es messages.phpCopy所有語(yǔ)言文件都返回一個(gè)包含字符串格式的鍵的數(shù)組。 例如:<?php return [ 'welcome' => 'Welcome to our application', ];Copy 注意:對(duì)于因地區(qū)而異...
http://m.o2fo.com/laravel_8/laravel_8-y1dl3gz4.html您的應(yīng)用程序的默認(rèn)語(yǔ)言存儲(chǔ)在 config / app.php 配置文件中。 您可以修改此值以適合您的應(yīng)用程序的需求。 您還可以在運(yùn)行時(shí)使用 App 的靜態(tài)方法,setLocale 方法更改正在使用的語(yǔ)言:Route::get('welcome/{locale}', function ($locale) { i...
http://m.o2fo.com/laravel_8/laravel_8-ynrj3gz5.html抱歉,暫時(shí)沒(méi)有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的教程
w3cschool 建議您:
...完全控制 Monolog 的實(shí)例化和配置,你可以在 config/logging.php 配置文件中指定 custom 驅(qū)動(dòng)程序類(lèi)型。 你的配置應(yīng)該包含一個(gè) via 選項(xiàng),指向?qū)⒈徽{(diào)用以創(chuàng)建 Monolog 實(shí)例的工廠類(lèi):'channels' => [ 'custom' => [ 'driver' =&...
http://m.o2fo.com/laravel_8/laravel_8-zofe3gwx.html...個(gè)數(shù)組并將其渲染成 JSON 。例如:<script> var app = <?php echo json_encode($array); ?>; </script>Copy 當(dāng)然,您亦可使用 @json Blade 指令來(lái)代替手動(dòng)調(diào)用 json_encode 方法。 @json 指令的參數(shù)和 PHP 的 json_encode 函數(shù)一致:<script> var ap...
http://m.o2fo.com/laravel_8/laravel_8-yaqc3gxw.html... @endif 指令構(gòu)造 if 語(yǔ)句。這些指令功能與它們所對(duì)應(yīng)的 PHP 語(yǔ)句完全一致:@if (count($records) === 1) I have one record! @elseif (count($records) > 1) I have multiple records! @else I don't have any records! @endifCopy 為了方便, Blade 還提供了一個(gè) @unless ...
http://m.o2fo.com/laravel_8/laravel_8-pxlu3gy0.html除了條件語(yǔ)句, Blade 還提供了與 PHP 循環(huán)結(jié)構(gòu)功能相同的指令。同樣,這些語(yǔ)句的功能和它們所對(duì)應(yīng)的 PHP 語(yǔ)法一致:@for ($i = 0; $i < 10; $i++) The current value is {{ $i }} @endfor @foreach ($users as $user) <p>This is user {{ $user->id }}</p&g...
http://m.o2fo.com/laravel_8/laravel_8-irxh3gy5.html...e 變量來(lái)顯示錯(cuò)誤信息:<!-- /resources/views/post/create.blade.php --> <label for="title">Post Title</label> <input id="title" type="text" class="@error('title') is-invalid @enderror"> @error('title') <div class="alert alert-danger">{{ $message ...
http://m.o2fo.com/laravel_8/laravel_8-7bio3gyd.html...組件具有以下標(biāo)記:<!-- /resources/views/components/alert.blade.php --> <div class="alert alert-danger"> {{ $slot }} </div> 我門(mén)可以通過(guò)向組件注入內(nèi)容的方式,將內(nèi)容傳遞到 slot :<x-alert> <strong>Whoops!</strong> Something went wrong...
http://m.o2fo.com/laravel_8/laravel_8-vap23gyg.html...s 目錄下。例如,假設(shè)您在 resources/views/components/alert.blade.php 中定義了一個(gè)組件:<x-alert/> 如果組件在 components 目錄的子目錄中,您可以使用 . 字符來(lái)指定其路徑。例如,假設(shè)組件被定義在 resources/views/components/inputs/button.blade...
http://m.o2fo.com/laravel_8/laravel_8-b6sj3gyi.html...件中。普通的值可以通過(guò)簡(jiǎn)單的 HTML 屬性來(lái)傳遞給組件。PHP 表達(dá)式和變量應(yīng)該通過(guò)以 : 字符作為前綴的變量來(lái)進(jìn)行傳遞:<x-alert type="error" :message="$message"/>Copy您應(yīng)該在類(lèi)的構(gòu)造器中定義組件的必要數(shù)據(jù)。在組件的視圖中,組...
http://m.o2fo.com/laravel_8/laravel_8-6mu93gyn.html...用程序支持的每種語(yǔ)言的子目錄:/resources /lang /en messages.php /es messages.phpCopy所有語(yǔ)言文件都返回一個(gè)包含字符串格式的鍵的數(shù)組。 例如:<?php return [ 'welcome' => 'Welcome to our application', ];Copy 注意:對(duì)于因地區(qū)而異...
http://m.o2fo.com/laravel_8/laravel_8-y1dl3gz4.html您的應(yīng)用程序的默認(rèn)語(yǔ)言存儲(chǔ)在 config / app.php 配置文件中。 您可以修改此值以適合您的應(yīng)用程序的需求。 您還可以在運(yùn)行時(shí)使用 App 的靜態(tài)方法,setLocale 方法更改正在使用的語(yǔ)言:Route::get('welcome/{locale}', function ($locale) { i...
http://m.o2fo.com/laravel_8/laravel_8-ynrj3gz5.html抱歉,暫時(shí)沒(méi)有相關(guān)的文章
w3cschool 建議您: